[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/44424: IP_IPSEC_POLICY is set-option only - get-option not active
>Synopsis: IP_IPSEC_POLICY is set-option only - get-option not active
>Arrival-Date: Thu Jan 20 09:50:00 +0000 2011
>Originator: Dr. W. Stukenbrock
>Release: NetBSD 5.1
Dr. Nagler & Company GmbH
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
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
Due to the missing support, a user level program is also unable to
detect if it is useing IPSEC or not.
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.
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
Main Index |
Thread Index |