13229Spst/* bootptest.h */ 297419Salfred/* $FreeBSD$ */ 33229Spst/* 43229Spst * Hacks for sharing print-bootp.c between tcpdump and bootptest. 53229Spst */ 63229Spst#define ESRC(p) (p) 73229Spst#define EDST(p) (p) 83229Spst 93229Spst#ifndef USE_BFUNCS 103229Spst/* Use mem/str functions */ 113229Spst/* There are no overlapped copies, so memcpy is OK. */ 123229Spst#define bcopy(a,b,c) memcpy(b,a,c) 133229Spst#define bzero(p,l) memset(p,0,l) 143229Spst#define bcmp(a,b,c) memcmp(a,b,c) 153229Spst#endif 163229Spst 173229Spstextern int vflag; /* verbose flag */ 183229Spst 193229Spst/* global pointers to beginning and end of current packet (during printing) */ 203229Spstextern unsigned char *packetp; 213229Spstextern unsigned char *snapend; 223229Spst 2397419Salfredextern char *ipaddr_string(struct in_addr *); 24