Skip to content
Snippets Groups Projects
Commit d569f1d7 authored by Guillaume Chazarain's avatar Guillaume Chazarain Committed by David S. Miller
Browse files

[IPV4]: Clear the whole IPCB, this clears also IPCB(skb)->flags.

parent 6b7fdc3a
No related branches found
No related tags found
No related merge requests found
...@@ -429,7 +429,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, ...@@ -429,7 +429,7 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
} }
/* Remove any debris in the socket control block */ /* Remove any debris in the socket control block */
memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options)); memset(IPCB(skb), 0, sizeof(struct inet_skb_parm));
return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL, return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL,
ip_rcv_finish); ip_rcv_finish);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment