Lines Matching refs:rtm
247 print_nhop_entry_sysctl(const char *name, struct rt_msghdr *rtm, struct nhop_external *nh) in print_nhop_entry_sysctl() argument
295 print_flags_generic(rtm->rtm_flags, rt_bits, buffer, "rt_flags_pretty"); in print_nhop_entry_sysctl()
349 struct rt_msghdr *rtm; in dump_nhops_sysctl() local
377 for (next = buf; next < lim; next += rtm->rtm_msglen) { in dump_nhops_sysctl()
378 rtm = (struct rt_msghdr *)next; in dump_nhops_sysctl()
379 if (rtm->rtm_version != RTM_VERSION) in dump_nhops_sysctl()
387 nh = (struct nhop_external *)(rtm + 1); in dump_nhops_sysctl()
389 nh_map[nh_count].rtm = rtm; in dump_nhops_sysctl()
406 struct rt_msghdr *rtm; in print_nhops_sysctl() local
413 nh = (struct nhop_external *)(nd.nh_map[0].rtm + 1); in print_nhops_sysctl()
432 rtm = nd.nh_map[i].rtm; in print_nhops_sysctl()
433 nh = (struct nhop_external *)(rtm + 1); in print_nhops_sysctl()
434 print_nhop_entry_sysctl("nh-entry", rtm, nh); in print_nhops_sysctl()