diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-16 06:28:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-16 06:28:06 -0400 |
commit | 80d0a69fc57715dc9080c0567df1ed911b78abea (patch) | |
tree | feb310b5075d3a4f118fcdde7bc44970b1c3f07e /include/net/inet_connection_sock.h | |
parent | 141e369de698f2e17bf716b83fcc647ddcb2220c (diff) |
ipv4: Add helper inet_csk_update_pmtu().
This abstracts away the call to dst_ops->update_pmtu() so that we can
transparently handle the fact that, in the future, the dst itself can
be invalidated by the PMTU update (when we have non-host routes cached
in sockets).
So we try to rebuild the socket cached route after the method
invocation if necessary.
This isn't used by SCTP because it needs to cache dsts per-transport,
and thus will need it's own local version of this helper.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r-- | include/net/inet_connection_sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 291e7cee14e7..2cf44b4ed2e6 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h | |||
@@ -337,4 +337,6 @@ extern int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, | |||
337 | char __user *optval, int __user *optlen); | 337 | char __user *optval, int __user *optlen); |
338 | extern int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, | 338 | extern int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, |
339 | char __user *optval, unsigned int optlen); | 339 | char __user *optval, unsigned int optlen); |
340 | |||
341 | extern struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu); | ||
340 | #endif /* _INET_CONNECTION_SOCK_H */ | 342 | #endif /* _INET_CONNECTION_SOCK_H */ |