Lines Matching refs:nll
95 int len, nll = 0; in recv_msg() local
100 len = recv(sock, buf_ptr, sizeof(buf) - nll, 0); in recv_msg()
109 nll += len; in recv_msg()
116 return nll; in recv_msg()
122 static void read_route(struct nlmsghdr *nh, int nll) in read_route() argument
159 for (; NLMSG_OK(nh, nll); nh = NLMSG_NEXT(nh, nll)) { in read_route()
320 int nll; in get_route_table() local
361 nll = recv_msg(sa, sock); in get_route_table()
362 if (nll < 0) { in get_route_table()
363 printf("recv from netlink: %s\n", strerror(nll)); in get_route_table()
368 read_route(nh, nll); in get_route_table()
377 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp() argument
397 for (; NLMSG_OK(nh, nll); nh = NLMSG_NEXT(nh, nll)) { in read_arp()
460 int nll; in get_arp_table() local
499 nll = recv_msg(sa, sock); in get_arp_table()
500 if (nll < 0) { in get_arp_table()
501 printf("recv from netlink: %s\n", strerror(nll)); in get_arp_table()
506 read_arp(nh, nll); in get_arp_table()
524 int nll, ret = 0; in monitor_route() local
586 nll = recv_msg(lr, sock); in monitor_route()
587 if (nll < 0) { in monitor_route()
588 printf("recv from netlink: %s\n", strerror(nll)); in monitor_route()
595 read_route(nh, nll); in monitor_route()
599 nll = recv_msg(la, sock_arp); in monitor_route()
600 if (nll < 0) { in monitor_route()
601 printf("recv from netlink: %s\n", strerror(nll)); in monitor_route()
607 read_arp(nh, nll); in monitor_route()