Skip to content

Commit 3942a28

Browse files
committed
mi: refactor cmds names to contain the module
Close #3838
1 parent 94fbaf6 commit 3942a28

70 files changed

Lines changed: 774 additions & 470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

blacklists.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,35 @@ static mi_response_t *mi_del_blacklist_rule(const mi_params_t *params,
6363

6464

6565
static const mi_export_t mi_bl_cmds[] = {
66-
{ "list_blacklists", "lists all the defined (static or learned) blacklists", 0, 0, {
66+
{ "list", "lists all the defined (static or learned) blacklists", 0, 0, {
6767
{mi_print_blacklists, {0}},
6868
{mi_print_blacklists, {"name", 0}},
6969
{EMPTY_MI_RECIPE}
7070
}
7171
},
72-
{ "check_blacklists", "returns all the blacklists where proto:IP:port pattern pair matches", 0, 0, {
72+
{ "check_all", "returns all the blacklists where proto:IP:port pattern pair matches", 0, 0, {
7373
{mi_check_all_blacklists, {"ip", 0}},
7474
{mi_check_all_blacklists, {"proto", "ip", 0}},
7575
{mi_check_all_blacklists, {"proto", "ip", "port", 0}},
7676
{mi_check_all_blacklists, {"proto", "ip", "port", "pattern", 0}},
7777
{EMPTY_MI_RECIPE}
7878
}
7979
},
80-
{ "check_blacklist", "checks whether an proto:IP:port pattern matches a blacklist", 0, 0, {
80+
{ "check", "checks whether an proto:IP:port pattern matches a blacklist", 0, 0, {
8181
{mi_check_blacklist, {"name", "ip", 0}},
8282
{mi_check_blacklist, {"name", "proto", "ip", 0}},
8383
{mi_check_blacklist, {"name", "proto", "ip", "port", 0}},
8484
{mi_check_blacklist, {"name", "proto", "ip", "port", "pattern", 0}},
8585
{EMPTY_MI_RECIPE}
8686
}
8787
},
88-
{ "add_blacklist_rule", "adds a new rule to a blacklist", 0, 0, {
88+
{ "add_rule", "adds a new rule to a blacklist", 0, 0, {
8989
{mi_add_blacklist_rule, {"name", "rule", 0}},
9090
{mi_add_blacklist_rule, {"name", "rule", "expire", 0}},
9191
{EMPTY_MI_RECIPE}
9292
}
9393
},
94-
{ "del_blacklist_rule", "removes a rule from a blacklist", 0, 0, {
94+
{ "del_rule", "removes a rule from a blacklist", 0, 0, {
9595
{mi_del_blacklist_rule, {"name", "rule", 0}},
9696
{EMPTY_MI_RECIPE}
9797
}

0 commit comments

Comments
 (0)