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