1 This patch fixes an issue where iptables throws the following error:
2 "getsockopt failed strangely". This patch is taken from the netfilter
3 svn (and it's included in iptable 1.4.0rc1):
5 http://svn.netfilter.org/cgi-bin/viewcvs.cgi?rev=6890&view=rev
7 --- iptables/iptables.c 2007/04/30 00:01:39 6815
8 +++ iptables/iptables.c 2007/06/26 15:29:45 6890
10 max_rev = getsockopt(sockfd, IPPROTO_IP, opt, &rev, &s);
12 /* Definitely don't support this? */
13 - if (errno == EPROTONOSUPPORT) {
14 + if (errno == ENOENT || errno == EPROTONOSUPPORT) {
17 } else if (errno == ENOPROTOOPT) {
18 --- iptables/ip6tables.c 2007/06/25 14:55:18 6889
19 +++ iptables/ip6tables.c 2007/06/26 15:29:45 6890
21 max_rev = getsockopt(sockfd, IPPROTO_IPV6, opt, &rev, &s);
23 /* Definitely don't support this? */
24 - if (errno == EPROTONOSUPPORT) {
25 + if (errno == ENOENT || errno == EPROTONOSUPPORT) {
28 } else if (errno == ENOPROTOOPT) {