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

Function lltable_sysctl_dumparp

freebsd/net/if_llatbl.c:110–127  ·  view source on GitHub ↗

* Dump arp state for a specific address family. */

Source from the content-addressed store, hash-verified

108 * Dump arp state for a specific address family.
109 */
110int
111lltable_sysctl_dumparp(int af, struct sysctl_req *wr)
112{
113 struct lltable *llt;
114 int error = 0;
115
116 LLTABLE_LIST_RLOCK();
117 SLIST_FOREACH(llt, &V_lltables, llt_link) {
118 if (llt->llt_af == af) {
119 error = lltable_dump_af(llt, wr);
120 if (error != 0)
121 goto done;
122 }
123 }
124done:
125 LLTABLE_LIST_RUNLOCK();
126 return (error);
127}
128
129/*
130 * Common function helpers for chained hash table.

Callers 1

sysctl_rtsockFunction · 0.85

Calls 1

lltable_dump_afFunction · 0.85

Tested by

no test coverage detected