mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 07:43:30 +00:00
tc/police: make print_police static
print_police function only used by m_police. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
7e569d92a9
commit
a38fadf401
@ -25,6 +25,10 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "tc_util.h"
|
#include "tc_util.h"
|
||||||
|
|
||||||
|
static int act_parse_police(struct action_util *a, int *argc_p,
|
||||||
|
char ***argv_p, int tca_id, struct nlmsghdr *n);
|
||||||
|
static int print_police(struct action_util *a, FILE *f, struct rtattr *tb);
|
||||||
|
|
||||||
struct action_util police_action_util = {
|
struct action_util police_action_util = {
|
||||||
.id = "police",
|
.id = "police",
|
||||||
.parse_aopt = act_parse_police,
|
.parse_aopt = act_parse_police,
|
||||||
@ -50,8 +54,8 @@ static void explain1(char *arg)
|
|||||||
fprintf(stderr, "Illegal \"%s\"\n", arg);
|
fprintf(stderr, "Illegal \"%s\"\n", arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int act_parse_police(struct action_util *a, int *argc_p, char ***argv_p,
|
static int act_parse_police(struct action_util *a, int *argc_p, char ***argv_p,
|
||||||
int tca_id, struct nlmsghdr *n)
|
int tca_id, struct nlmsghdr *n)
|
||||||
{
|
{
|
||||||
int argc = *argc_p;
|
int argc = *argc_p;
|
||||||
char **argv = *argv_p;
|
char **argv = *argv_p;
|
||||||
@ -256,7 +260,7 @@ int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n)
|
|||||||
return act_parse_police(NULL, argc_p, argv_p, tca_id, n);
|
return act_parse_police(NULL, argc_p, argv_p, tca_id, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
int print_police(struct action_util *a, FILE *f, struct rtattr *arg)
|
static int print_police(struct action_util *a, FILE *f, struct rtattr *arg)
|
||||||
{
|
{
|
||||||
SPRINT_BUF(b1);
|
SPRINT_BUF(b1);
|
||||||
SPRINT_BUF(b2);
|
SPRINT_BUF(b2);
|
||||||
|
@ -117,9 +117,6 @@ int parse_action_control_slash(int *argc_p, char ***argv_p,
|
|||||||
int *result1_p, int *result2_p, bool allow_num);
|
int *result1_p, int *result2_p, bool allow_num);
|
||||||
void print_action_control(FILE *f, const char *prefix,
|
void print_action_control(FILE *f, const char *prefix,
|
||||||
int action, const char *suffix);
|
int action, const char *suffix);
|
||||||
int act_parse_police(struct action_util *a, int *argc_p,
|
|
||||||
char ***argv_p, int tca_id, struct nlmsghdr *n);
|
|
||||||
int print_police(struct action_util *a, FILE *f, struct rtattr *tb);
|
|
||||||
int police_print_xstats(struct action_util *a, FILE *f, struct rtattr *tb);
|
int police_print_xstats(struct action_util *a, FILE *f, struct rtattr *tb);
|
||||||
int tc_print_action(FILE *f, const struct rtattr *tb, unsigned short tot_acts);
|
int tc_print_action(FILE *f, const struct rtattr *tb, unsigned short tot_acts);
|
||||||
int tc_print_ipt(FILE *f, const struct rtattr *tb);
|
int tc_print_ipt(FILE *f, const struct rtattr *tb);
|
||||||
|
Loading…
Reference in New Issue
Block a user