MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nhop_get

Function nhop_get

tools/netstat/nhgrp.c:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74static size_t ifmap_size;
75
76static struct nhop_entry *
77nhop_get(struct nhop_map *map, uint32_t idx)
78{
79
80 if (idx >= map->size)
81 return (NULL);
82 if (*map->ptr[idx].ifname == '\0')
83 return (NULL);
84 return &map->ptr[idx];
85}
86
87static void
88print_nhgroup_header(int af1 __unused)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected