diff options
| author | Hannes Frederic Sowa <[email protected]> | 2013-12-15 02:41:14 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-12-18 22:37:05 +0000 |
| commit | 93b36cf3425b9bd9c56df7680fb237686b9c82ae (patch) | |
| tree | 1562e2899394e011e22ce21523dd6ce1defc3ee8 /net/ipv6/tcp_ipv6.c | |
| parent | ipv4: new ip_no_pmtu_disc mode to always discard incoming frag needed msgs (diff) | |
| download | kernel-93b36cf3425b9bd9c56df7680fb237686b9c82ae.tar.gz kernel-93b36cf3425b9bd9c56df7680fb237686b9c82ae.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index da046a5d7ffb..d955487f2c54 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -397,6 +397,9 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, if (sk->sk_state == TCP_LISTEN) goto out; + if (!ip6_sk_accept_pmtu(sk)) + goto out; + tp->mtu_info = ntohl(info); if (!sock_owned_by_user(sk)) tcp_v6_mtu_reduced(sk); |
