]> git.ipfire.org Git - people/ms/strongswan.git/commit - src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c
kernel-netlink: Fallback to UDP if detecting socket protocol fails
authorMartin Willi <martin@revosec.ch>
Mon, 29 Sep 2014 15:11:53 +0000 (17:11 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 21 Nov 2014 09:55:45 +0000 (10:55 +0100)
commit3065081c3e9d1505e37a6b4aef8d9f4955bce61a
tree9c758c68684855a8a5ffa225e98b4585133d8100
parent87888f99265b8617fd430f2adc6c6c5e59a47979
kernel-netlink: Fallback to UDP if detecting socket protocol fails

getsockopt(SO_PROTOCOL) is not supported before 2.6.32. Default to UDP if
either the SO_PROTOCOL define is missing or the syscall fails.
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c