diff options
| author | 1999-09-16 20:58:44 +0000 | |
|---|---|---|
| committer | 1999-09-16 20:58:44 +0000 | |
| commit | 5205045a72c2ff4df38a5397408efc625454c4b0 (patch) | |
| tree | 7174084355ba073811f5fde5d9aa25e7a6ef9283 /usr.sbin/tcpdump/print-domain.c | |
| parent | Do something sensible with division by 0 in expr. (diff) | |
| download | wireguard-openbsd-5205045a72c2ff4df38a5397408efc625454c4b0.tar.xz wireguard-openbsd-5205045a72c2ff4df38a5397408efc625454c4b0.zip | |
bring more inline with tcpdump 3.4
Diffstat (limited to 'usr.sbin/tcpdump/print-domain.c')
| -rw-r--r-- | usr.sbin/tcpdump/print-domain.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/usr.sbin/tcpdump/print-domain.c b/usr.sbin/tcpdump/print-domain.c index c4150d33f9c..fb57a11db63 100644 --- a/usr.sbin/tcpdump/print-domain.c +++ b/usr.sbin/tcpdump/print-domain.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 + * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-domain.c,v 1.7 1999/07/28 20:41:36 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-domain.c,v 1.8 1999/09/16 20:58:46 brad Exp $ (LBL)"; #endif #include <sys/param.h> @@ -50,7 +50,6 @@ struct rtentry; #ifdef NOERROR #undef T_UNSPEC /* SINIX does too */ #endif - #include <arpa/nameser.h> #include <stdio.h> @@ -103,22 +102,9 @@ struct rtentry; #define T_LOC 29 /* Location Information */ #endif -#ifndef T_UINFO -#define T_UINFO 100 -#endif - -#ifndef T_UID -#define T_UID 101 -#endif - -#ifndef T_GID -#define T_GID 102 -#endif - #ifndef T_UNSPEC #define T_UNSPEC 103 /* Unspecified format (binary data) */ #endif - #ifndef T_UNSPECA #define T_UNSPECA 104 /* "unspecified ascii". Ugly MIT hack */ #endif @@ -234,8 +220,17 @@ static struct tok type2str[] = { { T_GPOS, "GPOS" }, { T_AAAA, "AAAA" }, { T_LOC , "LOC " }, +#ifndef T_UINFO +#define T_UINFO 100 +#endif { T_UINFO, "UINFO" }, +#ifndef T_UID +#define T_UID 101 +#endif { T_UID, "UID" }, +#ifndef T_GID +#define T_GID 102 +#endif { T_GID, "GID" }, { T_UNSPEC, "UNSPEC" }, { T_UNSPECA, "UNSPECA" }, |
