summaryrefslogtreecommitdiff
path: root/usr.sbin/bootp/bootptest/bootptest.h
blob: e0f966c549a09cbccfd8fc27d9f178a0acb3cb30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$NetBSD: bootptest.h,v 1.5 2007/05/27 16:31:42 tls Exp $	*/

/* 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;

extern void bootp_print(struct bootp *, int, u_short, u_short);
extern char *ipaddr_string(struct in_addr *);
extern int printfn(u_char *, u_char *);