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

Function af_all_tunnel_status

tools/ifconfig/ifconfig.c:906–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906static void
907af_all_tunnel_status(int s)
908{
909 struct afswtch *afp;
910 uint8_t afmask[howmany(AF_MAX, NBBY)];
911
912 memset(afmask, 0, sizeof(afmask));
913 for (afp = afs; afp != NULL; afp = afp->af_next) {
914 if (afp->af_status_tunnel == NULL)
915 continue;
916 if (afp->af_af != AF_UNSPEC && isset(afmask, afp->af_af))
917 continue;
918 afp->af_status_tunnel(s);
919 setbit(afmask, afp->af_af);
920 }
921}
922
923static struct cmd *cmds = NULL;
924

Callers 1

tunnel_statusFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected