aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-09-20 20:01:53 -0700
committerDavid S. Miller <davem@davemloft.net>2018-09-20 20:01:53 -0700
commit947e326c45dff8010a03db54a81c2068e6c28941 (patch)
tree763880f35bd999d898fbb0fca5268599db1a69a5 /include
parentnet-next: mscc: remove unused ocelot_dev_gmii.h (diff)
parentnetfilter: nft_fib: Convert nft_fib4_eval to new dev helper (diff)
downloadwireguard-linux-947e326c45dff8010a03db54a81c2068e6c28941.tar.xz
wireguard-linux-947e326c45dff8010a03db54a81c2068e6c28941.zip
Merge branch 'net-wean-netfilter-from-fib_nh'
David Ahern says: ==================== net: wean netfilter from fib_nh Two netfilter modules reference fib_nh. In both cases the code is only checking if a nexthop in a fib_info uses a specific device. Both instances essentially duplicate code from __fib_validate_source, so move that code into a helper and flip the netfilter modules to use it. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip_fib.h1
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);