summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ike.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2010-01-20 15:19:25 +0000
committersthen <sthen@openbsd.org>2010-01-20 15:19:25 +0000
commit0fbb8d1b4f1aa53c248750718f1e1cf2a4a02b06 (patch)
tree0918519f3e70b0a8fc4fcedd70ba4b64d9e6b871 /usr.sbin/tcpdump/print-ike.c
parentback out last commit. breaks half-duplex playback with poll(). (diff)
downloadwireguard-openbsd-0fbb8d1b4f1aa53c248750718f1e1cf2a4a02b06.tar.xz
wireguard-openbsd-0fbb8d1b4f1aa53c248750718f1e1cf2a4a02b06.zip
Print RFC3947 NAT Original Address (NAT-OA) payloads, they're a subset
of the id payload, so using the existing id printer. ok dlg@
Diffstat (limited to 'usr.sbin/tcpdump/print-ike.c')
-rw-r--r--usr.sbin/tcpdump/print-ike.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-ike.c b/usr.sbin/tcpdump/print-ike.c
index 114ffe7746a..f76b4339a32 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.33 2009/11/12 16:07:41 deraadt Exp $ */
+/* $OpenBSD: print-ike.c,v 1.34 2010/01/20 15:19:25 sthen Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -923,9 +923,18 @@ ike_pl_print (u_int8_t type, u_int8_t *buf, u_int8_t doi)
case PAYLOAD_SEQ:
case PAYLOAD_POP:
case PAYLOAD_NAT_D:
+ break;
+
case PAYLOAD_NAT_OA:
+ /* RFC3947 NAT-OA uses a subset of the ID payload */
+ ipsec_id_print(buf, this_len, doi);
+ break;
+
case PAYLOAD_NAT_D_DRAFT:
+ break;
+
case PAYLOAD_NAT_OA_DRAFT:
+ ipsec_id_print(buf, this_len, doi);
break;
default: