1 /* $NetBSD: bootptest.h,v 1.3 1998/03/14 04:39:54 lukem Exp $ */ 2 3 /* bootptest.h */ 4 /* 5 * Hacks for sharing print-bootp.c between tcpdump and bootptest. 6 */ 7 #define ESRC(p) (p) 8 #define EDST(p) (p) 9 10 #ifndef USE_BFUNCS 11 /* Use mem/str functions */ 12 /* There are no overlapped copies, so memcpy is OK. */ 13 #define bcopy(a,b,c) memcpy(b,a,c) 14 #define bzero(p,l) memset(p,0,l) 15 #define bcmp(a,b,c) memcmp(a,b,c) 16 #endif 17 18 extern int vflag; /* verbose flag */ 19 20 /* global pointers to beginning and end of current packet (during printing) */ 21 extern unsigned char *packetp; 22 extern unsigned char *snapend; 23 24 #ifdef __STDC__ 25 #define P(args) args 26 #else 27 #define P(args) () 28 #endif 29 30 extern void bootp_print P((struct bootp *, int, u_short, u_short)); 31 extern char *ipaddr_string P((struct in_addr *)); 32 extern int printfn P((u_char *, u_char *)); 33 34 #undef P 35