bridge: Reset IPCB when entering IP stack on NF_FORWARD

Whenever we enter the IP stack proper from bridge netfilter we
need to ensure that the skb is in a form the IP stack expects
it to be in.

The entry point on NF_FORWARD did not meet the requirements of
the IP stack, therefore leading to potential crashes/panics.

This patch fixes the problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Herbert Xu and committed by David S. Miller 6b1e960f d870bfb9

+3
+3
net/bridge/br_netfilter.c
··· 739 739 nf_bridge->mask |= BRNF_PKT_TYPE; 740 740 } 741 741 742 + if (br_parse_ip_options(skb)) 743 + return NF_DROP; 744 + 742 745 /* The physdev module checks on this */ 743 746 nf_bridge->mask |= BRNF_BRIDGED; 744 747 nf_bridge->physoutdev = skb->dev;