IPv6: Complete IPV6_DONTFRAG support
Finally add support to detect a local IPV6_DONTFRAG event and return the relevant data to the user if they've enabled IPV6_RECVPATHMTU on the socket. The next recvmsg() will return no data, but have an IPV6_PATHMTU as ancillary data. Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
13b52cd446
commit
4b340ae20d
@@ -417,6 +417,9 @@ void inet6_destroy_sock(struct sock *sk)
|
||||
if ((skb = xchg(&np->pktoptions, NULL)) != NULL)
|
||||
kfree_skb(skb);
|
||||
|
||||
if ((skb = xchg(&np->rxpmtu, NULL)) != NULL)
|
||||
kfree_skb(skb);
|
||||
|
||||
/* Free flowlabels */
|
||||
fl6_free_socklist(sk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user