summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2003-12-18 09:14:19 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2003-12-18 09:14:19 +0000
commit455f4c4db1979d203380c14a8e5f8ddcc1ff4ff1 (patch)
tree8387e086a461af3ab5d68412266fa72f150849f3 /usr.sbin
parent29e0a945d007bdb1cbef11d1e35846d6f4b63c64 (diff)
Recognize NAT-D and NAT-OA payloads. markus@ ok.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/ike.h6
-rw-r--r--usr.sbin/tcpdump/print-ike.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/ike.h b/usr.sbin/tcpdump/ike.h
index ab87e635542..55fc3a2ac19 100644
--- a/usr.sbin/tcpdump/ike.h
+++ b/usr.sbin/tcpdump/ike.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.h,v 1.5 2002/06/11 17:05:13 ho Exp $ */
+/* $OpenBSD: ike.h,v 1.6 2003/12/18 09:14:18 ho Exp $ */
/*
* Copyright (c) 2001 Håkan Olsson. All rights reserved.
@@ -109,6 +109,8 @@
#define PAYLOAD_DELETE 12
#define PAYLOAD_VENDOR 13
#define PAYLOAD_ATTRIBUTE 14
+#define PAYLOAD_NAT_D 15
+#define PAYLOAD_NAT_OA 16
#define IKE_PAYLOAD_TYPES_INITIALIZER \
{ "NONE", /* 0 */ \
@@ -126,6 +128,8 @@
"DELETE", /* 12 */ \
"VENDOR", /* 13 */ \
"ATTRIBUTE", /* 14 (ikecfg) */ \
+ "NAT-D", /* 15 */ \
+ "NAT-OA", /* 16 */ \
}
/* Exchange types */
diff --git a/usr.sbin/tcpdump/print-ike.c b/usr.sbin/tcpdump/print-ike.c
index 29693478ea1..88ba2202a67 100644
--- a/usr.sbin/tcpdump/print-ike.c
+++ b/usr.sbin/tcpdump/print-ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ike.c,v 1.15 2002/09/23 04:10:14 millert Exp $ */
+/* $OpenBSD: print-ike.c,v 1.16 2003/12/18 09:14:18 ho Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -29,7 +29,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.15 2002/09/23 04:10:14 millert Exp $ (XXX)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.16 2003/12/18 09:14:18 ho Exp $ (XXX)";
#endif
#include <sys/param.h>
@@ -686,6 +686,10 @@ ike_pl_print (u_char type, u_char *buf, u_char doi)
ike_pl_attribute_print(buf+4, this_len);
break;
+ case PAYLOAD_NAT_D:
+ case PAYLOAD_NAT_OA:
+ break;
+
default:
break;
}