diff options
author | David Ahern <dsahern@gmail.com> | 2018-09-20 23:50:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-21 06:01:52 +0300 |
commit | 78f2756c5fc0bf17560766dbc5aaa1e4a7ba66e4 (patch) | |
tree | 6f0d2d9ab64a7580e0f566da73ce39382375d7cb /include | |
parent | 5678cb3c96eeea907f5319a3644bbada26508e58 (diff) | |
download | linux-78f2756c5fc0bf17560766dbc5aaa1e4a7ba66e4.tar.xz |
net/ipv4: Move device validation to helper
Move the device matching check in __fib_validate_source to a helper and
export it for use by netfilter modules. Code move only; no functional
change intended.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip_fib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 69c91d1934c1..f7c109e37298 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -373,6 +373,7 @@ static inline bool fib4_rules_early_flow_dissect(struct net *net, extern const struct nla_policy rtm_ipv4_policy[]; void ip_fib_init(void); __be32 fib_compute_spec_dst(struct sk_buff *skb); +bool fib_info_nh_uses_dev(struct fib_info *fi, const struct net_device *dev); int fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst, u8 tos, int oif, struct net_device *dev, struct in_device *idev, u32 *itag); |