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