Lines Matching refs:nh
67 struct nlmsghdr nh;
73 rtreq.nh.nlmsg_type = RTM_GETROUTE;
74 rtreq.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP;
79 rtreq.nh.nlmsg_len = NLMSG_SPACE(sizeof(rtreq.rtm));
106 nsent = send(rtsock, &rtreq, rtreq.nh.nlmsg_len, 0);
158 struct nlmsghdr *nh;
161 for (nh = (struct nlmsghdr *)buf;
162 NLMSG_OK(nh, len);
163 nh = NLMSG_NEXT(nh, len))
174 nh->nlmsg_seq, nh->nlmsg_type, nh->nlmsg_flags));
176 if (nh->nlmsg_type == NLMSG_DONE) {
180 if (nh->nlmsg_type == NLMSG_ERROR) {
181 struct nlmsgerr *ne = (struct nlmsgerr *)NLMSG_DATA(nh);
187 if (nh->nlmsg_type < RTM_BASE || RTM_MAX <= nh->nlmsg_type) {
194 rtm = (struct rtmsg *)NLMSG_DATA(nh);
195 attrlen = RTM_PAYLOAD(nh);
197 if (nh->nlmsg_type == RTM_NEWROUTE) {
200 else if (nh->nlmsg_type == RTM_DELROUTE) {