Lines Matching refs:rtm
237 print_nhop_entry_sysctl(const char *name, struct rt_msghdr *rtm, struct nhop_external *nh) in print_nhop_entry_sysctl() argument
285 print_flags_generic(rtm->rtm_flags, rt_bits, buffer, "rt_flags_pretty"); in print_nhop_entry_sysctl()
341 struct rt_msghdr *rtm; in dump_nhops_sysctl() local
369 for (next = buf; next < lim; next += rtm->rtm_msglen) { in dump_nhops_sysctl()
370 rtm = (struct rt_msghdr *)next; in dump_nhops_sysctl()
371 if (rtm->rtm_version != RTM_VERSION) in dump_nhops_sysctl()
379 nh = (struct nhop_external *)(rtm + 1); in dump_nhops_sysctl()
381 nh_map[nh_count].rtm = rtm; in dump_nhops_sysctl()
398 struct rt_msghdr *rtm; in print_nhops_sysctl() local
405 nh = (struct nhop_external *)(nd.nh_map[0].rtm + 1); in print_nhops_sysctl()
424 rtm = nd.nh_map[i].rtm; in print_nhops_sysctl()
425 nh = (struct nhop_external *)(rtm + 1); in print_nhops_sysctl()
426 print_nhop_entry_sysctl("nh-entry", rtm, nh); in print_nhops_sysctl()