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

Function af_getbyname

tools/ifconfig/ifconfig.c:867–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867static struct afswtch *
868af_getbyname(const char *name)
869{
870 struct afswtch *afp;
871
872 for (afp = afs; afp != NULL; afp = afp->af_next)
873 if (strcmp(afp->af_name, name) == 0)
874 return afp;
875 return NULL;
876}
877
878static struct afswtch *
879af_getbyfamily(int af)

Callers 3

mainFunction · 0.85
ifconfigFunction · 0.85
ifconfig.cFile · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected