NetBSD Problem Report #44424

From Wolfgang.Stukenbrock@nagler-company.com  Thu Jan 20 09:49:46 2011
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7FFA663B883
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 20 Jan 2011 09:49:46 +0000 (UTC)
Message-Id: <20110120094938.B03911E80CE@test-s0.nagler-company.com>
Date: Thu, 20 Jan 2011 10:49:38 +0100 (CET)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: IP_IPSEC_POLICY is set-option only - get-option not active
X-Send-Pr-Version: 3.95

>Number:         44424
>Category:       kern
>Synopsis:       IP_IPSEC_POLICY is set-option only - get-option not active
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 20 09:50:00 +0000 2011
>Originator:     Dr. W. Stukenbrock
>Release:        NetBSD 5.1
>Organization:
Dr. Nagler & Company GmbH
>Environment:


System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
	In order to figure out if IP_IPSEC_POLICY is supported on a socket you normaly try to read the current
	setting. Due to the fact that only PRCO_SETOPT is supported this is currently impossible.
	Due to the missing support, a user level program is also unable to detect if it is useing IPSEC or not.
>How-To-Repeat:
	Try to check if IP_IPSEC_POLICY is supported by a socket from user level. You normaly will issue a get
	operation - but you get ENOPROTOOPT, even if it is supported.
>Fix:
	Activate the IP_IPSEC_POLICY code for PRCO_GETOPT in /usr/src/sys/netinet/ip_output.c around line 1405.
	A check it the code is OK should be done first for both IPSEC and FAST_IPSEC.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.