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