From 9160c85a78b66dab5318e2c9c922f00b6b3560f5 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 11 Oct 1997 15:10:57 +0000 Subject: namelogon.c : added NTLOGON. (fixed the case 0:) namepacket.c: call to NTLOGON mailslot nameserv.h defines for NETLOGON and NTLOGON mailslot util.c: added andrew's dump_data() function. (This used to be commit 1eaad1c99463dcd42eb8ff4ea5686ad9ec6fc42e) --- source3/lib/util.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 4e6bfb7054..208f13aaf0 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -4390,3 +4390,41 @@ char *align_offset(char *q, char *base, int align_offset_len) return q; } +static void print_asc(int level, unsigned char *buf,int len) +{ + int i; + for (i=0;i8) DEBUG(level,(" ")); + while (n--) DEBUG(level,(" ")); + + n = MIN(8,i%16); + print_asc(level,&buf[i-(i%16)],n); DEBUG(level,(" ")); + n = (i%16) - n; + if (n>0) print_asc(level,&buf[i-n],n); + DEBUG(level,("\n")); + } +} -- cgit