diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-12-14 21:41:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 17:37:05 -0500 |
commit | 93b36cf3425b9bd9c56df7680fb237686b9c82ae (patch) | |
tree | 1562e2899394e011e22ce21523dd6ce1defc3ee8 /net/sctp | |
parent | cd174e67a6b312fce9bab502ba2b0583e11f537f (diff) |
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>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 2a192a7c5d81..042ec6c9ae24 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -389,6 +389,9 @@ void sctp_icmp_frag_needed(struct sock *sk, struct sctp_association *asoc, | |||
389 | if (!t || (t->pathmtu <= pmtu)) | 389 | if (!t || (t->pathmtu <= pmtu)) |
390 | return; | 390 | return; |
391 | 391 | ||
392 | if (!ip6_sk_accept_pmtu(sk)) | ||
393 | return; | ||
394 | |||
392 | if (sock_owned_by_user(sk)) { | 395 | if (sock_owned_by_user(sk)) { |
393 | asoc->pmtu_pending = 1; | 396 | asoc->pmtu_pending = 1; |
394 | t->pmtu_pending = 1; | 397 | t->pmtu_pending = 1; |