18 #include <linux/net.h>
20 #include <linux/netlink.h>
21 #include <linux/rtnetlink.h>
22 #include <linux/netdevice.h>
24 #include <linux/list.h>
26 #include <linux/export.h>
61 flowidn_to_flowi(flp), 0, &arg);
107 static int dn_fib_rule_match(
struct fib_rule *rule,
struct flowi *
fl,
int flags)
190 if (!tb->
lookup(tb, &fld, &res)) {
198 static int dn_fib_rule_fill(
struct fib_rule *rule,
struct sk_buff *skb,
210 nla_put_le16(skb, FRA_SRC, r->
src)))
211 goto nla_put_failure;
218 static void dn_fib_rule_flush_cache(
struct fib_rules_ops *ops)
227 .
action = dn_fib_rule_action,
228 .
match = dn_fib_rule_match,
229 .configure = dn_fib_rule_configure,
230 .compare = dn_fib_rule_compare,
231 .
fill = dn_fib_rule_fill,
235 .policy = dn_fib_rule_policy,
244 BUG_ON(IS_ERR(dn_fib_rules_ops));