xref: /freebsd/libexec/bootpd/tools/bootptest/bootptest.h (revision 3e8eb5c7f4909209c042403ddee340b2ee7003a5)
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