Skip to content

Commit

Permalink
[IPV6]: Clean skb cb on IPv6 input.
Browse files Browse the repository at this point in the history
Clear the accumulated junk in IP6CB when starting to handle an IPV6
packet.

Signed-off-by: Guillaume Chazarain <guichaz@yahoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Guillaume Chazarain authored and David S. Miller committed Jul 25, 2006
1 parent d5af981 commit 6b7fdc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/ip6_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
goto out;
}

memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm));

/*
* Store incoming device index. When the packet will
* be queued, we cannot refer to skb->dev anymore.
Expand Down

0 comments on commit 6b7fdc3

Please sign in to comment.