Home
last modified time | relevance | path

Searched refs:nh_map (Results 1 – 3 of 3) sorted by relevance

/freebsd-13.1/usr.bin/netstat/
H A Dnhops.c348 struct nhops_map *nh_map; in dump_nhops_sysctl() local
373 nh_map = calloc(nh_size, sizeof(struct nhops_map)); in dump_nhops_sysctl()
381 nh_map = realloc(nh_map, nh_size * sizeof(struct nhops_map)); in dump_nhops_sysctl()
385 nh_map[nh_count].idx = nh->nh_idx; in dump_nhops_sysctl()
386 nh_map[nh_count].rtm = rtm; in dump_nhops_sysctl()
391 qsort(nh_map, nh_count, sizeof(struct nhops_map), cmp_nh_idx); in dump_nhops_sysctl()
394 nd->nh_map = nh_map; in dump_nhops_sysctl()
410 nh = (struct nhop_external *)(nd.nh_map[0].rtm + 1); in print_nhops_sysctl()
429 rtm = nd.nh_map[i].rtm; in print_nhops_sysctl()
H A Dnhgrp.c249 nd->nh_map = nhg_map; in dump_nhgrp_sysctl()
272 rtm = nd.nh_map[i].rtm; in print_nhgrp_sysctl()
321 rtm = nd.nh_map[i].rtm; in prepare_nh_map()
H A Dcommon.h65 struct nhops_map *nh_map; member