Lines Matching refs:rtnl_local
169 if (h->nlmsg_pid != rtnl_local.nl_pid || in rtnl_receive()
215 addrlen = sizeof(h->rtnl_local); in rtnl_open()
217 h->rtnl_local.nl_pid = getpid(); in rtnl_open()
224 memset(&h->rtnl_local, 0, sizeof(h->rtnl_local)); in rtnl_open()
225 h->rtnl_local.nl_family = AF_NETLINK; in rtnl_open()
226 h->rtnl_local.nl_groups = RTMGRP_LINK; in rtnl_open()
227 if (bind(h->rtnl_fd, (struct sockaddr *) &h->rtnl_local, addrlen) < 0) { in rtnl_open()
233 (struct sockaddr *) &h->rtnl_local, in rtnl_open()
239 if (addrlen != sizeof(h->rtnl_local)) { in rtnl_open()
244 if (h->rtnl_local.nl_family != AF_NETLINK) { in rtnl_open()
245 rtnl_log(LOG_ERROR, "invalid AF %u", h->rtnl_local.nl_family); in rtnl_open()