summaryrefslogtreecommitdiff
path: root/libexec/bootpd/tools/bootptest/bootptest.h
blob: e4da8c6bbb47daecfe84f0a7eb7abe7fc5f14532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* bootptest.h */
/*
 * Hacks for sharing print-bootp.c between tcpdump and bootptest.
 */
#define ESRC(p) (p)
#define EDST(p) (p)

extern int vflag; /* verbose flag */

/* global pointers to beginning and end of current packet (during printing) */
extern unsigned char *packetp;
extern unsigned char *snapend;

void	 bootp_print(struct bootp *bp, int length, u_short sport,
	    u_short dport);
char	*ipaddr_string(struct in_addr *);
int	 printfn(u_char *s, u_char *ep);