bootptest.h revision 3229
13229Spst/* bootptest.h */ 23229Spst/* 33229Spst * Hacks for sharing print-bootp.c between tcpdump and bootptest. 43229Spst */ 53229Spst#define ESRC(p) (p) 63229Spst#define EDST(p) (p) 73229Spst 83229Spst#ifndef USE_BFUNCS 93229Spst/* Use mem/str functions */ 103229Spst/* There are no overlapped copies, so memcpy is OK. */ 113229Spst#define bcopy(a,b,c) memcpy(b,a,c) 123229Spst#define bzero(p,l) memset(p,0,l) 133229Spst#define bcmp(a,b,c) memcmp(a,b,c) 143229Spst#endif 153229Spst 163229Spstextern int vflag; /* verbose flag */ 173229Spst 183229Spst/* global pointers to beginning and end of current packet (during printing) */ 193229Spstextern unsigned char *packetp; 203229Spstextern unsigned char *snapend; 213229Spst 223229Spst#ifdef __STDC__ 233229Spst#define P(args) args 243229Spst#else 253229Spst#define P(args) () 263229Spst#endif 273229Spst 283229Spstextern char *ipaddr_string P((struct in_addr *)); 293229Spst 303229Spst#undef P 31