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