ipv6: support IPV6_PMTU_INTERFACE on sockets
IPV6_PMTU_INTERFACE is the same as IPV6_PMTU_PROBE for ipv6. Add it nontheless for symmetry with IPv4 sockets. Also drop incoming MTU information if this mode is enabled. The additional bit in ipv6_pinfo just eats in the padding behind the bitfield. There are no changes to the layout of the struct at all. Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cd174e67a6
commit
93b36cf342
@@ -141,6 +141,9 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
||||
if (type == ICMPV6_PKT_TOOBIG) {
|
||||
struct dst_entry *dst = NULL;
|
||||
|
||||
if (!ip6_sk_accept_pmtu(sk))
|
||||
goto out;
|
||||
|
||||
if (sock_owned_by_user(sk))
|
||||
goto out;
|
||||
if ((1 << sk->sk_state) & (DCCPF_LISTEN | DCCPF_CLOSED))
|
||||
|
Reference in New Issue
Block a user