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

Function get_iffam_from_name

freebsd/netgraph/ng_iface.c:259–271  ·  view source on GitHub ↗

* Get the iffam descriptor from the name */

Source from the content-addressed store, hash-verified

257 * Get the iffam descriptor from the name
258 */
259static __inline iffam_p
260get_iffam_from_name(const char *name)
261{
262 iffam_p iffam;
263 int k;
264
265 for (k = 0; k < NUM_FAMILIES; k++) {
266 iffam = &gFamilies[k];
267 if (!strcmp(iffam->hookname, name))
268 return (iffam);
269 }
270 return (NULL);
271}
272
273/************************************************************************
274 INTERFACE STUFF

Callers 1

ng_iface_newhookFunction · 0.70

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected