diff options
| author | Paul Traina <pst@FreeBSD.org> | 1994-09-30 05:45:07 +0000 |
|---|---|---|
| committer | Paul Traina <pst@FreeBSD.org> | 1994-09-30 05:45:07 +0000 |
| commit | 44099b7b1ec9c9295687eba077be6ad2931d292d (patch) | |
| tree | 063b400e64a6e0b8dc8cceade3c202711afca9df /libexec/bootpd/tools/bootptest/bootptest.h | |
| parent | e56de50e266f4436821583e104f44ad208123f49 (diff) | |
Notes
Diffstat (limited to 'libexec/bootpd/tools/bootptest/bootptest.h')
| -rw-r--r-- | libexec/bootpd/tools/bootptest/bootptest.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libexec/bootpd/tools/bootptest/bootptest.h b/libexec/bootpd/tools/bootptest/bootptest.h new file mode 100644 index 000000000000..27f78ba963b7 --- /dev/null +++ b/libexec/bootpd/tools/bootptest/bootptest.h @@ -0,0 +1,30 @@ +/* bootptest.h */ +/* + * Hacks for sharing print-bootp.c between tcpdump and bootptest. + */ +#define ESRC(p) (p) +#define EDST(p) (p) + +#ifndef USE_BFUNCS +/* Use mem/str functions */ +/* There are no overlapped copies, so memcpy is OK. */ +#define bcopy(a,b,c) memcpy(b,a,c) +#define bzero(p,l) memset(p,0,l) +#define bcmp(a,b,c) memcmp(a,b,c) +#endif + +extern int vflag; /* verbose flag */ + +/* global pointers to beginning and end of current packet (during printing) */ +extern unsigned char *packetp; +extern unsigned char *snapend; + +#ifdef __STDC__ +#define P(args) args +#else +#define P(args) () +#endif + +extern char *ipaddr_string P((struct in_addr *)); + +#undef P |
