xref: /freebsd/libexec/bootpd/tools/bootptest/bootptest.h (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1 /* bootptest.h */
2 /*
3  * Hacks for sharing print-bootp.c between tcpdump and bootptest.
4  */
5 #define ESRC(p) (p)
6 #define EDST(p) (p)
7 
8 extern int vflag; /* verbose flag */
9 
10 /* global pointers to beginning and end of current packet (during printing) */
11 extern unsigned char *packetp;
12 extern unsigned char *snapend;
13 
14 void	 bootp_print(struct bootp *bp, int length, u_short sport,
15 	    u_short dport);
16 char	*ipaddr_string(struct in_addr *);
17 int	 printfn(u_char *s, u_char *ep);
18