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

Function af_other_status

tools/ifconfig/ifconfig.c:889–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887}
888
889static void
890af_other_status(int s)
891{
892 struct afswtch *afp;
893 uint8_t afmask[howmany(AF_MAX, NBBY)];
894
895 memset(afmask, 0, sizeof(afmask));
896 for (afp = afs; afp != NULL; afp = afp->af_next) {
897 if (afp->af_other_status == NULL)
898 continue;
899 if (afp->af_af != AF_UNSPEC && isset(afmask, afp->af_af))
900 continue;
901 afp->af_other_status(s);
902 setbit(afmask, afp->af_af);
903 }
904}
905
906static void
907af_all_tunnel_status(int s)

Callers 1

ifconfig.cFile · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected