|
@@ -989,6 +989,7 @@ static u32 vrf_fib_table(const struct net_device *dev)
|
|
|
|
|
|
static int vrf_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
|
|
|
{
|
|
|
+ kfree_skb(skb);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -998,7 +999,7 @@ static struct sk_buff *vrf_rcv_nfhook(u8 pf, unsigned int hook,
|
|
|
{
|
|
|
struct net *net = dev_net(dev);
|
|
|
|
|
|
- if (NF_HOOK(pf, hook, net, NULL, skb, dev, NULL, vrf_rcv_finish) < 0)
|
|
|
+ if (nf_hook(pf, hook, net, NULL, skb, dev, NULL, vrf_rcv_finish) != 1)
|
|
|
skb = NULL; /* kfree_skb(skb) handled by nf code */
|
|
|
|
|
|
return skb;
|