Lines Matching full:nh

63 	struct nlmsghdr *nh;  in recv_msg()  local
73 nh = (struct nlmsghdr *)buf_ptr; in recv_msg()
75 if (nh->nlmsg_type == NLMSG_DONE) 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()
118 rt_msg = (struct rtmsg *)NLMSG_DATA(nh); in read_route()
124 rtl = RTM_PAYLOAD(nh); in read_route()
175 if (nh->nlmsg_type == RTM_DELROUTE) { in read_route()
205 if (nh->nlmsg_type == RTM_DELROUTE) { in read_route()
254 struct nlmsghdr *nh; in get_route_table() local
306 nh = (struct nlmsghdr *)buf; 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()
334 rt_msg = (struct ndmsg *)NLMSG_DATA(nh); in read_arp()
337 rtl = RTM_PAYLOAD(nh); in read_arp()
359 if (nh->nlmsg_type == RTM_DELNEIGH) { in read_arp()
362 } else if (nh->nlmsg_type == RTM_NEWNEIGH) { in read_arp()
372 if (nh->nlmsg_type == RTM_DELNEIGH) { in read_arp()
375 } else if (nh->nlmsg_type == RTM_NEWNEIGH) { in read_arp()
391 struct nlmsghdr *nh; in get_arp_table() local
441 nh = (struct nlmsghdr *)buf; in get_arp_table()
442 read_arp(nh, nll); in get_arp_table()
456 struct nlmsghdr *nh; in monitor_routes_thread() local
517 nh = (struct nlmsghdr *)buf; in monitor_routes_thread()
518 read_route(nh, nll); in monitor_routes_thread()
530 nh = (struct nlmsghdr *)buf; in monitor_routes_thread()
531 read_arp(nh, nll); in monitor_routes_thread()