Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
A Dnetlink_helpers.c18 if (rth->fd >= 0) { in rtnl_close()
19 close(rth->fd); in rtnl_close()
20 rth->fd = -1; in rtnl_close()
31 memset(rth, 0, sizeof(*rth)); in rtnl_open_byproto()
32 rth->proto = protocol; in rtnl_open_byproto()
34 if (rth->fd < 0) { in rtnl_open_byproto()
53 memset(&rth->local, 0, sizeof(rth->local)); in rtnl_open_byproto()
57 if (bind(rth->fd, (struct sockaddr *)&rth->local, in rtnl_open_byproto()
63 if (getsockname(rth->fd, (struct sockaddr *)&rth->local, in rtnl_open_byproto()
77 rth->seq = time(NULL); in rtnl_open_byproto()
[all …]
A Dnetlink_helpers.h29 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions)
31 void rtnl_close(struct rtnl_handle *rth);
/linux/net/ipv4/
A Droute.c393 return rth->rt_genid != rt_genid_ipv4(dev_net(rth->dst.dev)); in rt_is_expired()
1720 if (!rth) in ip_route_input_mc()
1840 if (!rth) { in __mkroute_input()
2352 if (!rth) in ip_route_input_slow()
2374 rth->dst.lwtstate->orig_input = rth->dst.input; in ip_route_input_slow()
2568 if (rt_cache_valid(rth) && dst_hold_safe(&rth->dst)) in __mkroute_output()
2569 return rth; in __mkroute_output()
2575 if (!rth) in __mkroute_output()
2602 return rth; in __mkroute_output()
2627 return rth; in ip_route_output_key_hash()
[all …]
/linux/drivers/net/
A 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
1032 if (rth) { in vrf_rtable_release()
1033 dst = &rth->dst; in vrf_rtable_release()
1044 struct rtable *rth; in vrf_rtable_create() local
1051 if (!rth) in vrf_rtable_create()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A 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()
A 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()
A 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/net/core/
A 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/net/ipv6/
A 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/Documentation/devicetree/bindings/
A Dvendor-prefixes.yaml1631 description: Würth Elektronik GmbH.
/linux/Documentation/core-api/
A Ddma-api-howto.rst6 :Author: Richard Henderson <rth@cygnus.com>
/linux/
A DCREDITS1620 E: rth@twiddle.net
1621 E: rth@cygnus.com

Completed in 40 milliseconds