xref: /netbsd/usr.sbin/bootp/bootptest/bootptest.h (revision c4a72b64)
1 /*	$NetBSD: bootptest.h,v 1.4 2002/07/14 00:07:01 wiz Exp $	*/
2 
3 /* bootptest.h */
4 /*
5  * Hacks for sharing print-bootp.c between tcpdump and bootptest.
6  */
7 #define ESRC(p) (p)
8 #define EDST(p) (p)
9 
10 #ifndef	USE_BFUNCS
11 /* Use mem/str functions */
12 /* There are no overlapped copies, so memcpy is OK. */
13 #define bcopy(a,b,c)    memcpy(b,a,c)
14 #define bzero(p,l)      memset(p,0,l)
15 #define bcmp(a,b,c)     memcmp(a,b,c)
16 #endif
17 
18 extern int vflag; /* verbose flag */
19 
20 /* global pointers to beginning and end of current packet (during printing) */
21 extern unsigned char *packetp;
22 extern unsigned char *snapend;
23 
24 extern void bootp_print(struct bootp *, int, u_short, u_short);
25 extern char *ipaddr_string(struct in_addr *);
26 extern int printfn(u_char *, u_char *);
27