Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 14:55:33 -0400
From:      Alex <alex323@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/147887: Invalid extension type displayed with setkey
Message-ID:  <20100615145533.020e2090@gmail.com>
Resent-Message-ID: <201006151930.o5FJU0Hb085389@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         147887
>Category:       misc
>Synopsis:       Invalid extension type displayed with setkey
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 15 19:30:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alex
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD orion 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #4: Sun Jun
13 20:18:56 EDT 2010 alex@orion:/usr/obj/usr/src/sys/ORION amd64

>Description:
After setting up an ESP tunnel with racoon2, setkey -D displays
"Invalid extension type" in place of the actual SAD entries that would
otherwise be displayed. This is caused by libipsec.

>How-To-Repeat:
Set up a racoon2 IKE2 exchange and look at the output from setkey -D.

>Fix:
See attached patch.
--MP_/dATNuk_1h8Sa8B9ELA1QyCA
Content-Type: text/x-patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=pkfey.patch

--- orig/pfkey.c	2010-06-15 14:53:12.000000000 -0400
+++ pfkey.c	2010-06-15 14:51:04.000000000 -0400
@@ -1776,6 +1776,11 @@
 		case SADB_EXT_SPIRANGE:
 		case SADB_X_EXT_POLICY:
 		case SADB_X_EXT_SA2:
+		case SADB_X_EXT_NAT_T_TYPE:
+		case SADB_X_EXT_NAT_T_SPORT:
+		case SADB_X_EXT_NAT_T_DPORT:
+		case SADB_X_EXT_NAT_T_OAI:
+		case SADB_X_EXT_NAT_T_OAR:
 			mhp[ext->sadb_ext_type] =3D (caddr_t)ext;
 			break;
 		default:

--MP_/dATNuk_1h8Sa8B9ELA1QyCA--
>Release-Note:
>Audit-Trail:
>Unformatted:
 --MP_/dATNuk_1h8Sa8B9ELA1QyCA
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100615145533.020e2090>