Searched refs:rth (Results 1 - 8 of 8) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dnetlink_helpers.c16 void rtnl_close(struct rtnl_handle *rth) argument
18 if (rth->fd >= 0) {
19 close(rth->fd);
20 rth->fd = -1;
24 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions, argument
31 memset(rth, 0, sizeof(*rth));
32 rth->proto = protocol;
33 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol);
34 if (rth
84 rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions) argument
[all...]
H A Dnetlink_helpers.h29 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions)
31 void rtnl_close(struct rtnl_handle *rth);
/linux-master/net/ipv4/
H A Droute.c393 static inline bool rt_is_expired(const struct rtable *rth) argument
395 return rth->rt_genid != rt_genid_ipv4(dev_net(rth->dst.dev));
1725 struct rtable *rth; local
1739 rth = rt_dst_alloc(dev_net(dev)->loopback_dev, flags, RTN_MULTICAST,
1741 if (!rth)
1745 rth->dst.tclassid = itag;
1747 rth->dst.output = ip_rt_bug;
1748 rth->rt_is_input= 1;
1752 rth
1796 struct rtable *rth; local
2232 struct rtable *rth; local
2510 struct rtable *rth; local
2636 struct rtable *rth; local
2656 struct rtable *rth; local
[all...]
/linux-master/drivers/net/
H A Dvrf.c113 struct rtable __rcu *rth; member in struct:net_vrf
922 struct rtable *rth; local
926 rth = rcu_dereference(vrf->rth);
927 if (likely(rth)) {
928 dst = &rth->dst;
1040 struct rtable *rth = rtnl_dereference(vrf->rth); local
1044 RCU_INIT_POINTER(vrf->rth, NULL);
1050 if (rth) {
1062 struct rtable *rth; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_netkit.c38 struct rtnl_handle rth = { .fd = -1 }; local
44 err = rtnl_open(&rth, 0);
65 err = rtnl_talk(&rth, &req.n, NULL);
67 rtnl_close(&rth);
H A Dtc_redirect.c150 struct rtnl_handle rth = { .fd = -1 }; local
159 err = rtnl_open(&rth, 0);
181 err = rtnl_talk(&rth, &req.n, NULL);
183 rtnl_close(&rth);
/linux-master/net/ipv6/
H A Dah6.c243 struct ipv6_rt_hdr *rth; member in union:__anon99
267 ipv6_rearrange_rthdr(iph, exthdr.rth);
/linux-master/net/core/
H A Dnet_namespace.c851 struct rtgenmsg *rth; local
853 nlh = nlmsg_put(skb, args->portid, args->seq, args->cmd, sizeof(*rth),
858 rth = nlmsg_data(nlh);
859 rth->rtgen_family = AF_UNSPEC;

Completed in 135 milliseconds