Searched refs:rth (Results 1 – 5 of 5) sorted by relevance
| /tools/testing/selftests/bpf/ |
| A D | netlink_helpers.c | 18 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 D | netlink_helpers.h | 29 int rtnl_open(struct rtnl_handle *rth, unsigned int subscriptions) 31 void rtnl_close(struct rtnl_handle *rth);
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | tc_netkit.c | 46 struct rtnl_handle rth = { .fd = -1 }; in create_netkit() local 52 err = rtnl_open(&rth, 0); in create_netkit() 79 err = rtnl_talk(&rth, &req.n, NULL); in create_netkit() 81 rtnl_close(&rth); in create_netkit()
|
| A D | tc_redirect.c | 167 struct rtnl_handle rth = { .fd = -1 }; in create_netkit() local 176 err = rtnl_open(&rth, 0); in create_netkit() 198 err = rtnl_talk(&rth, &req.n, NULL); in create_netkit() 200 rtnl_close(&rth); in create_netkit()
|
| A D | tc_links.c | 1800 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()
|
Completed in 13 milliseconds