Home
last modified time | relevance | path

Searched refs:rth (Results 1 – 4 of 4) sorted by relevance

/net/ipv4/
Droute.c436 static inline bool rt_is_expired(const struct rtable *rth) in rt_is_expired() argument
438 return rth->rt_genid != rt_genid(dev_net(rth->dst.dev)); in rt_is_expired()
1389 struct rtable *rth; in ip_route_input_mc() local
1416 rth = rt_dst_alloc(dev_net(dev)->loopback_dev, in ip_route_input_mc()
1418 if (!rth) in ip_route_input_mc()
1422 rth->dst.tclassid = itag; in ip_route_input_mc()
1424 rth->dst.output = ip_rt_bug; in ip_route_input_mc()
1426 rth->rt_genid = rt_genid(dev_net(dev)); in ip_route_input_mc()
1427 rth->rt_flags = RTCF_MULTICAST; in ip_route_input_mc()
1428 rth->rt_type = RTN_MULTICAST; in ip_route_input_mc()
[all …]
/net/core/
Dnet_namespace.c539 struct rtgenmsg *rth; in rtnl_net_fill() local
544 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rth), flags); in rtnl_net_fill()
548 rth = nlmsg_data(nlh); in rtnl_net_fill()
549 rth->rtgen_family = AF_UNSPEC; in rtnl_net_fill()
/net/decnet/
Ddn_route.c335 struct dn_route *rth; in dn_insert_route() local
342 while ((rth = rcu_dereference_protected(*rthp, in dn_insert_route()
344 if (compare_keys(&rth->fld, &rt->fld)) { in dn_insert_route()
346 *rthp = rth->dst.dn_next; in dn_insert_route()
347 rcu_assign_pointer(rth->dst.dn_next, in dn_insert_route()
349 rcu_assign_pointer(dn_rt_hash_table[hash].chain, rth); in dn_insert_route()
351 dst_use(&rth->dst, now); in dn_insert_route()
355 *rp = rth; in dn_insert_route()
358 rthp = &rth->dst.dn_next; in dn_insert_route()
/net/ipv6/
Dah6.c261 struct ipv6_rt_hdr *rth; in ipv6_clear_mutable_options() member
285 ipv6_rearrange_rthdr(iph, exthdr.rth); in ipv6_clear_mutable_options()