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