Merge pull request #75 from fingon/fix-linux3.10-ipv6-pinhole

netfilter: Linux 3.10(?) IPv6 firewall pinhole fix
This commit is contained in:
Thomas BERNARD 2014-05-30 13:05:06 +02:00
commit f841aa9e56
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ int add_pinhole(const char * ifname,
e = calloc(1, sizeof(struct ip6t_entry)); e = calloc(1, sizeof(struct ip6t_entry));
e->ipv6.proto = proto; e->ipv6.proto = proto;
if (proto)
e->ipv6.flags |= IP6T_F_PROTO;
if(ifname) if(ifname)
strncpy(e->ipv6.iniface, ifname, IFNAMSIZ); strncpy(e->ipv6.iniface, ifname, IFNAMSIZ);