xref: /freebsd/libexec/bootpd/tools/bootptest/bootptest.h (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
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 extern int vflag; /* verbose flag */
10 
11 /* global pointers to beginning and end of current packet (during printing) */
12 extern unsigned char *packetp;
13 extern unsigned char *snapend;
14 
15 void	 bootp_print(struct bootp *bp, int length, u_short sport,
16 	    u_short dport);
17 char	*ipaddr_string(struct in_addr *);
18 int	 printfn(u_char *s, u_char *ep);
19