diff options
| author | David Ahern <dsahern@gmail.com> | 2018-05-21 09:08:13 -0700 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-22 10:51:09 +0200 |
| commit | 50d889b1789458d1f7d7f40ff4f628b670047773 (patch) | |
| tree | b135cefd3c0de7c3ff7fb6729b8e36235bdea92f /include | |
| parent | Merge branch 'bpf-af-xdp-cleanups' (diff) | |
| download | linux-50d889b1789458d1f7d7f40ff4f628b670047773.tar.gz linux-50d889b1789458d1f7d7f40ff4f628b670047773.zip | |
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 */ |
