Lines Matching refs:nll
64 int len, nll = 0; in recv_msg() local
69 len = recv(sock, buf_ptr, sizeof(buf) - nll, 0); in recv_msg()
78 nll += len; in recv_msg()
85 return nll; in recv_msg()
91 static void read_route(struct nlmsghdr *nh, int nll) in read_route() argument
117 for (; NLMSG_OK(nh, nll); nh = NLMSG_NEXT(nh, nll)) { in read_route()
259 int nll; in get_route_table() local
300 nll = recv_msg(sa, sock); in get_route_table()
301 if (nll < 0) { in get_route_table()
302 fprintf(stderr, "recv from netlink: %s\n", strerror(nll)); in get_route_table()
303 ret = nll; in get_route_table()
307 read_route(nh, nll); in get_route_table()
316 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp() argument
333 for (; NLMSG_OK(nh, nll); nh = NLMSG_NEXT(nh, nll)) { in read_arp()
396 int nll; in get_arp_table() local
435 nll = recv_msg(sa, sock); in get_arp_table()
436 if (nll < 0) { in get_arp_table()
437 fprintf(stderr, "recv from netlink: %s\n", strerror(nll)); in get_arp_table()
438 ret = nll; in get_arp_table()
442 read_arp(nh, nll); in get_arp_table()
455 int sock, sock_arp, nll; in monitor_routes_thread() local
510 nll = recv_msg(lr, sock); in monitor_routes_thread()
511 if (nll < 0) { in monitor_routes_thread()
513 strerror(nll)); in monitor_routes_thread()
518 read_route(nh, nll); in monitor_routes_thread()
523 nll = recv_msg(la, sock_arp); in monitor_routes_thread()
524 if (nll < 0) { in monitor_routes_thread()
526 strerror(nll)); in monitor_routes_thread()
531 read_arp(nh, nll); in monitor_routes_thread()