Lines Matching refs:msglen

1472   int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg));  in display_route_info()  local
1477 if (msglen < 0) return 1; in display_route_info()
1505 tvar = msglen; in display_route_info()
1603 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() local
1606 tvar = msglen; in display_route_info()
1626 int msglen = recv(sockfd, toybuf, sizeof(toybuf), 0); in display_route_info() local
1628 if ((msglen < 0) && (errno == EINTR || errno == EAGAIN)) continue; in display_route_info()
1629 else if (msglen < 0) { in display_route_info()
1633 } else if (!msglen) { in display_route_info()
1639 for (mhdr = (struct nlmsghdr*)toybuf; NLMSG_OK(mhdr, msglen); in display_route_info()
1640 mhdr = NLMSG_NEXT(mhdr, msglen)) { in display_route_info()
1734 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() local
1738 if (msglen < 0) error_exit("wrong len %d", msglen); in route_get()
1740 tvar = msglen; in route_get()
2226 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in show_rules() local
2231 if (msglen < 0) return 1; in show_rules()
2233 tvar = msglen; in show_rules()
2688 int msglen = recv(TT.sockfd, TT.gbuf, MESG_LEN, 0); in filter_nlmesg() local
2690 if ((msglen < 0) && (errno == EINTR || errno == EAGAIN)) continue; in filter_nlmesg()
2691 else if (msglen < 0) { in filter_nlmesg()
2694 } else if (!msglen) { in filter_nlmesg()
2699 for (mhdr = (struct nlmsghdr*)TT.gbuf; NLMSG_OK(mhdr, msglen); in filter_nlmesg()
2700 mhdr = NLMSG_NEXT(mhdr, msglen)) { in filter_nlmesg()