bootptest.h revision 1.2 1 1.2 perry /* $NetBSD: bootptest.h,v 1.2 1998/01/09 08:09:04 perry Exp $ */
2 1.2 perry
3 1.1 gwr /* bootptest.h */
4 1.1 gwr /*
5 1.1 gwr * Hacks for sharing print-bootp.c between tcpdump and bootptest.
6 1.1 gwr */
7 1.1 gwr #define ESRC(p) (p)
8 1.1 gwr #define EDST(p) (p)
9 1.1 gwr
10 1.1 gwr #ifndef USE_BFUNCS
11 1.1 gwr /* Use mem/str functions */
12 1.1 gwr /* There are no overlapped copies, so memcpy is OK. */
13 1.1 gwr #define bcopy(a,b,c) memcpy(b,a,c)
14 1.1 gwr #define bzero(p,l) memset(p,0,l)
15 1.1 gwr #define bcmp(a,b,c) memcmp(a,b,c)
16 1.1 gwr #endif
17 1.1 gwr
18 1.1 gwr extern int vflag; /* verbose flag */
19 1.1 gwr
20 1.1 gwr /* global pointers to beginning and end of current packet (during printing) */
21 1.1 gwr extern unsigned char *packetp;
22 1.1 gwr extern unsigned char *snapend;
23 1.1 gwr
24 1.1 gwr #ifdef __STDC__
25 1.1 gwr #define P(args) args
26 1.1 gwr #else
27 1.1 gwr #define P(args) ()
28 1.1 gwr #endif
29 1.1 gwr
30 1.1 gwr extern char *ipaddr_string P((struct in_addr *));
31 1.1 gwr
32 1.1 gwr #undef P
33