Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/
Dnetlink_helpers.c16 void rtnl_close(struct rtnl_handle *rth) in rtnl_close() argument
18 if (rth->fd >= 0) { in rtnl_close()
19 close(rth->fd); in rtnl_close()
20 rth->fd = -1; in rtnl_close()
24 int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions, in rtnl_open_byproto() argument
31 memset(rth, 0, sizeof(*rth)); in rtnl_open_byproto()
32 rth->proto = protocol; in rtnl_open_byproto()
33 rth->fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, protocol); in rtnl_open_byproto()
34 if (rth->fd < 0) { in rtnl_open_byproto()
38 if (setsockopt(rth->fd, SOL_SOCKET, SO_SNDBUF, in rtnl_open_byproto()
[all …]
Dnetlink_helpers.h29 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions)
31 void rtnl_close(struct rtnl_handle *rth);
/linux-6.12.1/net/ipv4/
Droute.c391 static inline bool rt_is_expired(const struct rtable *rth) in rt_is_expired() argument
393 return rth->rt_genid != rt_genid_ipv4(dev_net(rth->dst.dev)); in rt_is_expired()
1704 struct rtable *rth; in ip_route_input_mc() local
1718 rth = rt_dst_alloc(dev_net(dev)->loopback_dev, flags, RTN_MULTICAST, in ip_route_input_mc()
1720 if (!rth) in ip_route_input_mc()
1724 rth->dst.tclassid = itag; in ip_route_input_mc()
1726 rth->dst.output = ip_rt_bug; in ip_route_input_mc()
1727 rth->rt_is_input= 1; in ip_route_input_mc()
1731 rth->dst.input = ip_mr_input; in ip_route_input_mc()
1736 skb_dst_set(skb, &rth->dst); in ip_route_input_mc()
[all …]
/linux-6.12.1/drivers/net/
Dvrf.c114 struct rtable __rcu *rth; member
904 struct rtable *rth; in vrf_ip_out_redirect() local
908 rth = rcu_dereference(vrf->rth); in vrf_ip_out_redirect()
909 if (likely(rth)) { in vrf_ip_out_redirect()
910 dst = &rth->dst; in vrf_ip_out_redirect()
1022 struct rtable *rth = rtnl_dereference(vrf->rth); in vrf_rtable_release() local
1026 RCU_INIT_POINTER(vrf->rth, NULL); in vrf_rtable_release()
1032 if (rth) { in vrf_rtable_release()
1033 dst = &rth->dst; in vrf_rtable_release()
1044 struct rtable *rth; in vrf_rtable_create() local
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtc_netkit.c38 struct rtnl_handle rth = { .fd = -1 }; in create_netkit() local
44 err = rtnl_open(&rth, 0); in create_netkit()
65 err = rtnl_talk(&rth, &req.n, NULL); in create_netkit()
67 rtnl_close(&rth); in create_netkit()
Dtc_redirect.c165 struct rtnl_handle rth = { .fd = -1 }; in create_netkit() local
174 err = rtnl_open(&rth, 0); in create_netkit()
196 err = rtnl_talk(&rth, &req.n, NULL); in create_netkit()
198 rtnl_close(&rth); in create_netkit()
Dtc_links.c1800 struct rtnl_handle rth = { .fd = -1 }; in qdisc_replace() local
1804 err = rtnl_open(&rth, 0); in qdisc_replace()
1820 err = rtnl_talk(&rth, &req.n, NULL); in qdisc_replace()
1822 rtnl_close(&rth); in qdisc_replace()
/linux-6.12.1/net/core/
Dnet_namespace.c845 struct rtgenmsg *rth; in rtnl_net_fill() local
847 nlh = nlmsg_put(skb, args->portid, args->seq, args->cmd, sizeof(*rth), in rtnl_net_fill()
852 rth = nlmsg_data(nlh); in rtnl_net_fill()
853 rth->rtgen_family = AF_UNSPEC; in rtnl_net_fill()
/linux-6.12.1/net/ipv6/
Dah6.c243 struct ipv6_rt_hdr *rth; in ipv6_clear_mutable_options() member
267 ipv6_rearrange_rthdr(iph, exthdr.rth); in ipv6_clear_mutable_options()
/linux-6.12.1/Documentation/core-api/
Ddma-api-howto.rst6 :Author: Richard Henderson <rth@cygnus.com>
/linux-6.12.1/
DCREDITS1620 E: rth@twiddle.net
1621 E: rth@cygnus.com