Home
last modified time | relevance | path

Searched refs:tb_id (Results 1 – 12 of 12) sorted by relevance

/net/l3mdev/
Dl3mdev.c57 u32 tb_id = 0; in l3mdev_fib_table_rcu() local
64 tb_id = dev->l3mdev_ops->l3mdev_fib_table(dev); in l3mdev_fib_table_rcu()
75 tb_id = master->l3mdev_ops->l3mdev_fib_table(master); in l3mdev_fib_table_rcu()
78 return tb_id; in l3mdev_fib_table_rcu()
85 u32 tb_id = 0; in l3mdev_fib_table_by_index() local
94 tb_id = l3mdev_fib_table_rcu(dev); in l3mdev_fib_table_by_index()
98 return tb_id; in l3mdev_fib_table_by_index()
/net/ipv4/
Dfib_trie.c111 u8 tos, u8 type, u32 tb_id, u32 nlflags) in call_fib_entry_notifiers() argument
119 .tb_id = tb_id, in call_fib_entry_notifiers()
991 u8 tos, u32 prio, u32 tb_id) in fib_find_alias() argument
1003 if (fa->tb_id > tb_id) in fib_find_alias()
1005 if (fa->tb_id != tb_id) in fib_find_alias()
1088 (new->tb_id > last->tb_id)) in fib_insert_alias()
1128 pr_debug("Insert table=%u %08x/%d\n", tb->tb_id, key, plen); in fib_table_insert()
1141 tb->tb_id) : NULL; in fib_table_insert()
1171 (fa->tb_id != tb->tb_id) || in fib_table_insert()
1206 new_fa->tb_id = tb->tb_id; in fib_table_insert()
[all …]
Dfib_lookup.h15 u32 tb_id; member
33 int fib_dump_info(struct sk_buff *skb, u32 pid, u32 seq, int event, u32 tb_id,
37 u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
Dfib_frontend.c126 if (tb->tb_id == id) in fib_get_table()
137 switch (new->tb_id) { in fib_replace_table()
209 __be32 addr, u32 tb_id) in __inet_dev_addr_type() argument
223 table = fib_get_table(net, tb_id); in __inet_dev_addr_type()
236 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table() argument
238 return __inet_dev_addr_type(net, NULL, addr, tb_id); in inet_addr_type_table()
814 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic() local
829 if (!tb_id) in fib_magic()
830 tb_id = (type == RTN_UNICAST) ? RT_TABLE_MAIN : RT_TABLE_LOCAL; in fib_magic()
832 tb = fib_new_table(net, tb_id); in fib_magic()
[all …]
Dfib_semantics.c403 int dst_len, u32 tb_id, const struct nl_info *info, in rtmsg_fib() argument
414 err = fib_dump_info(skb, info->portid, seq, event, tb_id, in rtmsg_fib()
935 u32 tb_id = cfg->fc_table; in fib_valid_prefsrc() local
938 if (tb_id == RT_TABLE_MAIN) in fib_valid_prefsrc()
939 tb_id = RT_TABLE_LOCAL; in fib_valid_prefsrc()
942 fib_prefsrc, tb_id); in fib_valid_prefsrc()
944 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc()
1233 u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, in fib_dump_info() argument
1248 if (tb_id < 256) in fib_dump_info()
1249 rtm->rtm_table = tb_id; in fib_dump_info()
[all …]
Dfib_rules.c82 u32 tb_id; in fib4_rule_action() local
101 tb_id = fib_rule_get_table(rule, arg); in fib4_rule_action()
102 tbl = fib_get_table(rule->fr_net, tb_id); in fib4_rule_action()
206 rule->table = table->tb_id; in fib4_rule_configure()
Daf_inet.c448 u32 tb_id = RT_TABLE_LOCAL; in inet_bind() local
470 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ? : tb_id; in inet_bind()
471 chk_addr_ret = inet_addr_type_table(net, addr->sin_addr.s_addr, tb_id); in inet_bind()
Droute.c1705 rth->rt_table_id = res->table->tb_id; in __mkroute_input()
1939 rth->rt_table_id = res.table->tb_id; in ip_route_input_slow()
2145 rth->rt_table_id = res->table->tb_id; in __mkroute_output()
/net/ipv6/
Dfib6_rules.c62 u32 tb_id; in fib6_rule_action() local
82 tb_id = fib_rule_get_table(rule, arg); in fib6_rule_action()
83 table = fib6_get_table(net, tb_id); in fib6_rule_action()
Droute.c2362 u32 tb_id = l3mdev_fib_table(dev) ? : addrconf_rt_table(dev, RT6_TABLE_INFO); in rt6_get_route_info() local
2367 table = fib6_get_table(net, tb_id); in rt6_get_route_info()
2424 u32 tb_id = l3mdev_fib_table(dev) ? : addrconf_rt_table(dev, RT6_TABLE_MAIN); in rt6_get_dflt_router() local
2428 table = fib6_get_table(dev_net(dev), tb_id); in rt6_get_dflt_router()
2601 u32 tb_id; in addrconf_dst_alloc() local
2632 tb_id = l3mdev_fib_table(idev->dev) ? : RT6_TABLE_LOCAL; in addrconf_dst_alloc()
2633 rt->rt6i_table = fib6_get_table(net, tb_id); in addrconf_dst_alloc()
Daddrconf.c2277 u32 tb_id = l3mdev_fib_table(dev) ? : addrconf_rt_table(dev, RT6_TABLE_PREFIX); in addrconf_get_prefix_route() local
2279 table = fib6_get_table(dev_net(dev), tb_id); in addrconf_get_prefix_route()
/net/decnet/
Ddn_table.c300 u32 tb_id, u8 type, u8 scope, void *dst, int dst_len, in dn_fib_dump_info() argument
315 rtm->rtm_table = tb_id; in dn_fib_dump_info()
321 if (nla_put_u32(skb, RTA_TABLE, tb_id) < 0) in dn_fib_dump_info()
379 static void dn_rtmsg_fib(int event, struct dn_fib_node *f, int z, u32 tb_id, in dn_rtmsg_fib() argument
390 err = dn_fib_dump_info(skb, portid, nlh->nlmsg_seq, event, tb_id, in dn_rtmsg_fib()