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