Searched refs:nladdr (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/vsock/ |
D | vsock_diag_test.c | 166 struct sockaddr_nl nladdr = { in send_req() local 188 .msg_name = &nladdr, in send_req() 189 .msg_namelen = sizeof(nladdr), in send_req() 209 struct sockaddr_nl nladdr = { in recv_resp() local 217 .msg_name = &nladdr, in recv_resp() 218 .msg_namelen = sizeof(nladdr), in recv_resp()
|
/kernel/linux/linux-5.10/tools/accounting/ |
D | getdelays.c | 124 struct sockaddr_nl nladdr; in send_cmd() local 145 memset(&nladdr, 0, sizeof(nladdr)); in send_cmd() 146 nladdr.nl_family = AF_NETLINK; in send_cmd() 147 while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *) &nladdr, in send_cmd() 148 sizeof(nladdr))) < buflen) { in send_cmd()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 88 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in do_nl_req() local 95 ret = sendto(fd, data, len, 0, (void *)&nladdr, sizeof(nladdr)); in do_nl_req() 101 addr_len = sizeof(nladdr); in do_nl_req() 102 rem = ret = recvfrom(fd, data, max, 0, (void *)&nladdr, &addr_len); in do_nl_req()
|
/kernel/linux/linux-5.10/net/netlink/ |
D | af_netlink.c | 986 struct sockaddr_nl *nladdr = (struct sockaddr_nl *)addr; in netlink_bind() local 994 if (nladdr->nl_family != AF_NETLINK) in netlink_bind() 996 groups = nladdr->nl_groups; in netlink_bind() 1016 if (nladdr->nl_pid != nlk->portid) in netlink_bind() 1040 err = nladdr->nl_pid ? in netlink_bind() 1041 netlink_insert(sk, nladdr->nl_pid) : in netlink_bind() 1074 struct sockaddr_nl *nladdr = (struct sockaddr_nl *)addr; in netlink_connect() local 1091 if ((nladdr->nl_groups || nladdr->nl_pid) && in netlink_connect() 1104 nlk->dst_portid = nladdr->nl_pid; in netlink_connect() 1105 nlk->dst_group = ffs(nladdr->nl_groups); in netlink_connect() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | udpgso.c | 360 struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; in set_route_mtu() local 422 ret = sendto(fd, data, off, 0, (void *)&nladdr, sizeof(nladdr)); in set_route_mtu()
|