diff options
author | David Ahern <dsahern@gmail.com> | 2018-05-21 19:08:13 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-22 11:51:09 +0300 |
commit | 50d889b1789458d1f7d7f40ff4f628b670047773 (patch) | |
tree | b135cefd3c0de7c3ff7fb6729b8e36235bdea92f /include | |
parent | fd0bfa8d6e046237cb591bd3b51c87c56d4772b2 (diff) | |
download | linux-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')
-rw-r--r-- | include/net/ip_fib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 81d0f2107ff1..69c91d1934c1 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 */ |