diff options
author | Luis Fernando <tdthp@terra.com.br> | 2013-07-03 22:19:55 +0200 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2013-07-03 22:19:55 +0200 |
commit | ca8acf3e212dfb203974a88e2d7058b5edf26847 (patch) | |
tree | 32ea4a0723a68e3c7372dccb58cce8a129f0bb62 | |
parent | fc86053304f620249710997abf07506a8f229c78 (diff) | |
download | ebtables-ca8acf3e212dfb203974a88e2d7058b5edf26847.tar.gz ebtables-ca8acf3e212dfb203974a88e2d7058b5edf26847.tar.bz2 ebtables-ca8acf3e212dfb203974a88e2d7058b5edf26847.zip |
workaround for kernel regression bug: IPv6 source/destination addresses are potentially not matched correctly
-rw-r--r-- | extensions/ebt_ip6.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/ebt_ip6.c b/extensions/ebt_ip6.c index 0465e77..bbdc4ae 100644 --- a/extensions/ebt_ip6.c +++ b/extensions/ebt_ip6.c @@ -312,6 +312,10 @@ static void init(struct ebt_entry_match *match) ipinfo->invflags = 0; ipinfo->bitmask = 0; + memset(ipinfo->saddr.s6_addr, 0, sizeof(ipinfo->saddr.s6_addr)); + memset(ipinfo->smsk.s6_addr, 0, sizeof(ipinfo->smsk.s6_addr)); + memset(ipinfo->daddr.s6_addr, 0, sizeof(ipinfo->daddr.s6_addr)); + memset(ipinfo->dmsk.s6_addr, 0, sizeof(ipinfo->dmsk.s6_addr)); } #define OPT_SOURCE 0x01 |