Lines Matching refs:fd
86 test_nlmsg_type(const int fd)
95 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
99 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
103 test_nlmsg_flags(const int fd)
112 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
116 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
120 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
124 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
128 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
132 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
136 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
140 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
144 test_nlmsg_done(const int fd)
149 TEST_NETLINK(fd, nlh0, NLMSG_DONE, NLM_F_REQUEST,
155 test_rtnl_unspec(const int fd)
161 TEST_NETLINK_(fd, nlh0,
169 TEST_NETLINK_(fd, nlh0,
176 TEST_NETLINK_(fd, nlh0,
187 TEST_NETLINK_(fd, nlh0,
196 TEST_NETLINK_(fd, nlh0,
205 test_rtnl_link(const int fd)
216 TEST_NL_ROUTE(fd, nlh0, RTM_GETLINK, ifinfo,
226 test_rtnl_addr(const int fd)
237 TEST_NL_ROUTE(fd, nlh0, RTM_GETADDR, msg,
247 test_rtnl_route(const int fd)
262 TEST_NL_ROUTE(fd, nlh0, RTM_GETROUTE, msg,
276 test_rtnl_rule(const int fd)
289 TEST_NL_ROUTE(fd, nlh0, RTM_GETRULE, msg,
302 test_rtnl_neigh(const int fd)
313 TEST_NL_ROUTE(fd, nlh0, RTM_GETNEIGH, msg,
322 test_rtnl_neightbl(const int fd)
329 TEST_NETLINK(fd, nlh0,
336 test_rtnl_tc(const int fd)
347 TEST_NL_ROUTE(fd, nlh0, RTM_GETQDISC, msg,
357 test_rtnl_tca(const int fd)
364 TEST_NETLINK(fd, nlh0,
372 test_rtnl_addrlabel(const int fd)
383 TEST_NL_ROUTE(fd, nlh0, RTM_GETADDRLABEL, msg,
395 test_rtnl_dcb(const int fd)
403 TEST_NL_ROUTE(fd, nlh0, RTM_GETDCB, msg,
411 test_rtnl_netconf(const int fd)
418 TEST_NETLINK(fd, nlh0,
427 test_rtnl_mdb(const int fd)
435 TEST_NL_ROUTE(fd, nlh0, RTM_GETMDB, msg,
443 test_rtnl_nsid(const int fd)
450 TEST_NETLINK(fd, nlh0,
459 skip_if_unavailable("/proc/self/fd/");
461 int fd = create_nl_socket(NETLINK_ROUTE);
463 test_nlmsg_type(fd);
464 test_nlmsg_flags(fd);
465 test_nlmsg_done(fd);
466 test_rtnl_unspec(fd);
467 test_rtnl_link(fd);
468 test_rtnl_addr(fd);
469 test_rtnl_route(fd);
471 test_rtnl_rule(fd);
473 test_rtnl_neigh(fd);
474 test_rtnl_neightbl(fd);
475 test_rtnl_tc(fd);
476 test_rtnl_tca(fd);
478 test_rtnl_addrlabel(fd);
481 test_rtnl_dcb(fd);
484 test_rtnl_netconf(fd);
487 test_rtnl_mdb(fd);
490 test_rtnl_nsid(fd);