Fixed: counters incorectly shown in webadmin, contall/nocountall are not applied

This commit is contained in:
z3APA3A committed 2020-12-02 20:08:03 +03:00
1 parent 29f8867a9e
commit 129d26475e
4 files changed
+63 -44

No files matched your search

+4 -25
View File
@@ -365,32 +365,11 @@ static void * ef_ace_next(struct node * node){
return ((struct ace *)node->value) -> next;
}
char * aceaction (int action);
static void * ef_ace_type(struct node * node){
switch (((struct ace *)node->value) -> action) {
case ALLOW:
case REDIRECT:
return "allow";
case DENY:
return "deny";
case BANDLIM:
return "bandlim";
case NOBANDLIM:
return "nobandlim";
case COUNTIN:
return "countin";
case NOCOUNTIN:
return "nocountin";
case COUNTOUT:
return "countout";
case NOCOUNTOUT:
return "nocountout";
case COUNTALL:
return "countall";
case NOCOUNTALL:
return "nocountall";
default:
return "unknown";
}
return aceaction(((struct ace *)node->value) -> action);
}