Lines Matching +full:2 +full:nd
2 * SPDX-License-Identifier: BSD-2-Clause
11 * 2. Redistributions in binary form must reproduce the above copyright
107 buffer[2] = ':';
193 dump_nhgrp_sysctl(int fibnum, int af, struct nhops_dump *nd)
205 mib[2] = 0;
232 nhg_size *= 2;
244 nd->nh_buf = buf;
245 nd->nh_count = nhg_count;
246 nd->nh_map = nhg_map;
252 struct nhops_dump nd;
256 dump_nhgrp_sysctl(fibnum, af, &nd);
260 if (nd.nh_count > 0) {
268 for (size_t i = 0; i < nd.nh_count; i++) {
269 rtm = nd.nh_map[i].rtm;
276 free(nd.nh_buf);
311 struct nhops_dump nd;
315 dump_nhops_sysctl(fibnum, af, &nd);
317 for (size_t i = 0; i < nd.nh_count; i++) {
318 rtm = nd.nh_map[i].rtm;
323 free(nd.nh_buf);