hammer2 - cleanup
[dragonfly.git] / libexec / bootpd / tools / bootptest / bootptest.h
blob24bdc751752d15e9b4c92bf8cc90ca42c85cb970
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)
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
16 extern int vflag; /* verbose flag */
18 /* global pointers to beginning and end of current packet (during printing) */
19 extern unsigned char *packetp;
20 extern unsigned char *snapend;
22 extern char *ipaddr_string(struct in_addr *);