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

Function get_iffam_from_af

freebsd/netgraph/ng_iface.c:218–230  ·  view source on GitHub ↗

* Get the family descriptor from the family ID */

Source from the content-addressed store, hash-verified

216 * Get the family descriptor from the family ID
217 */
218static __inline iffam_p
219get_iffam_from_af(sa_family_t family)
220{
221 iffam_p iffam;
222 int k;
223
224 for (k = 0; k < NUM_FAMILIES; k++) {
225 iffam = &gFamilies[k];
226 if (iffam->family == family)
227 return (iffam);
228 }
229 return (NULL);
230}
231
232/*
233 * Get the family descriptor from the hook

Callers 1

ng_iface_sendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected