summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-05-21 09:08:13 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-22 10:51:09 +0200
commit50d889b1789458d1f7d7f40ff4f628b670047773 (patch)
treeb135cefd3c0de7c3ff7fb6729b8e36235bdea92f /include/net
parentfd0bfa8d6e046237cb591bd3b51c87c56d4772b2 (diff)
downloadlinux-0-day-50d889b1789458d1f7d7f40ff4f628b670047773.tar.gz
linux-0-day-50d889b1789458d1f7d7f40ff4f628b670047773.tar.xz
net/ipv4: Add helper to return path MTU based on fib result
Determine path MTU from a FIB lookup result. Logic is a distillation of ip_dst_mtu_maybe_forward. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip_fib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index 81d0f2107ff1a..69c91d1934c15 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -449,4 +449,6 @@ static inline void fib_proc_exit(struct net *net)
}
#endif
+u32 ip_mtu_from_fib_result(struct fib_result *res, __be32 daddr);
+
#endif /* _NET_FIB_H */