Lines Matching refs:fd

87 test_nlmsg_type(const int fd)  in test_nlmsg_type()  argument
96 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_type()
100 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_type()
104 test_nlmsg_flags(const int fd) in test_nlmsg_flags() argument
113 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
117 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags()
121 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
125 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags()
129 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
133 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags()
137 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); in test_nlmsg_flags()
141 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_nlmsg_flags()
145 test_nlmsg_done(const int fd) in test_nlmsg_done() argument
150 TEST_NETLINK(fd, nlh0, NLMSG_DONE, NLM_F_REQUEST, in test_nlmsg_done()
156 test_rtnl_unspec(const int fd) in test_rtnl_unspec() argument
163 TEST_NETLINK_(fd, nlh0, in test_rtnl_unspec()
171 TEST_NETLINK_(fd, nlh0, in test_rtnl_unspec()
178 TEST_NETLINK_(fd, nlh0, in test_rtnl_unspec()
188 TEST_NETLINK_(fd, nlh0, in test_rtnl_unspec()
197 TEST_NETLINK_(fd, nlh0, in test_rtnl_unspec()
206 test_rtnl_link(const int fd) in test_rtnl_link() argument
217 TEST_NL_ROUTE(fd, nlh0, RTM_GETLINK, ifinfo, in test_rtnl_link()
227 test_rtnl_addr(const int fd) in test_rtnl_addr() argument
238 TEST_NL_ROUTE(fd, nlh0, RTM_GETADDR, msg, in test_rtnl_addr()
248 test_rtnl_route(const int fd) in test_rtnl_route() argument
263 TEST_NL_ROUTE(fd, nlh0, RTM_GETROUTE, msg, in test_rtnl_route()
277 test_rtnl_rule(const int fd) in test_rtnl_rule() argument
290 TEST_NL_ROUTE(fd, nlh0, RTM_GETRULE, msg, in test_rtnl_rule()
303 test_rtnl_neigh(const int fd) in test_rtnl_neigh() argument
314 TEST_NL_ROUTE(fd, nlh0, RTM_GETNEIGH, msg, in test_rtnl_neigh()
323 test_rtnl_neightbl(const int fd) in test_rtnl_neightbl() argument
330 TEST_NETLINK(fd, nlh0, in test_rtnl_neightbl()
337 test_rtnl_tc(const int fd) in test_rtnl_tc() argument
348 TEST_NL_ROUTE(fd, nlh0, RTM_GETQDISC, msg, in test_rtnl_tc()
358 test_rtnl_tca(const int fd) in test_rtnl_tca() argument
365 TEST_NETLINK(fd, nlh0, in test_rtnl_tca()
373 test_rtnl_addrlabel(const int fd) in test_rtnl_addrlabel() argument
384 TEST_NL_ROUTE(fd, nlh0, RTM_GETADDRLABEL, msg, in test_rtnl_addrlabel()
396 test_rtnl_dcb(const int fd) in test_rtnl_dcb() argument
404 TEST_NL_ROUTE(fd, nlh0, RTM_GETDCB, msg, in test_rtnl_dcb()
412 test_rtnl_netconf(const int fd) in test_rtnl_netconf() argument
419 TEST_NETLINK(fd, nlh0, in test_rtnl_netconf()
428 test_rtnl_mdb(const int fd) in test_rtnl_mdb() argument
436 TEST_NL_ROUTE(fd, nlh0, RTM_GETMDB, msg, in test_rtnl_mdb()
444 test_rtnl_nsid(const int fd) in test_rtnl_nsid() argument
451 TEST_NETLINK(fd, nlh0, in test_rtnl_nsid()
462 int fd = create_nl_socket(NETLINK_ROUTE); in main() local
464 test_nlmsg_type(fd); in main()
465 test_nlmsg_flags(fd); in main()
466 test_nlmsg_done(fd); in main()
467 test_rtnl_unspec(fd); in main()
468 test_rtnl_link(fd); in main()
469 test_rtnl_addr(fd); in main()
470 test_rtnl_route(fd); in main()
472 test_rtnl_rule(fd); in main()
474 test_rtnl_neigh(fd); in main()
475 test_rtnl_neightbl(fd); in main()
476 test_rtnl_tc(fd); in main()
477 test_rtnl_tca(fd); in main()
479 test_rtnl_addrlabel(fd); in main()
482 test_rtnl_dcb(fd); in main()
485 test_rtnl_netconf(fd); in main()
488 test_rtnl_mdb(fd); in main()
491 test_rtnl_nsid(fd); in main()