| 904 | } |
| 905 | |
| 906 | static void |
| 907 | af_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 | |
| 923 | static struct cmd *cmds = NULL; |
| 924 |
no test coverage detected