Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/net/
H A Dipsec.c1327 struct sockaddr_nl snl = {}; in netlink_sock_bind() local
1331 snl.nl_family = AF_NETLINK; in netlink_sock_bind()
1332 snl.nl_groups = groups; in netlink_sock_bind()
1339 if (bind(*sock, (struct sockaddr *)&snl, sizeof(snl)) < 0) { in netlink_sock_bind()
1344 addr_len = sizeof(snl); in netlink_sock_bind()
1345 if (getsockname(*sock, (struct sockaddr *)&snl, &addr_len) < 0) { in netlink_sock_bind()
1349 if (addr_len != sizeof(snl)) { in netlink_sock_bind()
1353 if (snl.nl_family != AF_NETLINK) { in netlink_sock_bind()
1354 printk("Wrong address family %d", snl.nl_family); in netlink_sock_bind()