tc: break long lines

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2017-11-24 11:31:36 -08:00
parent 927e3cfb52
commit 859af0a5dc
10 changed files with 24 additions and 14 deletions

View File

@ -169,7 +169,8 @@ done:
} }
static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n) static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc,
char **argv, struct nlmsghdr *n)
{ {
int family = strcmp(qu->id, "rsvp") == 0 ? AF_INET : AF_INET6; int family = strcmp(qu->id, "rsvp") == 0 ? AF_INET : AF_INET6;
struct tc_rsvp_pinfo pinfo = {}; struct tc_rsvp_pinfo pinfo = {};

View File

@ -26,7 +26,8 @@
#define MAX_HDR_LEN 64 #define MAX_HDR_LEN 64
static int atm_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int atm_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
if (argc) { if (argc) {
fprintf(stderr, "Usage: atm\n"); fprintf(stderr, "Usage: atm\n");

View File

@ -34,7 +34,8 @@ static void explain1(const char *arg, const char *val)
fprintf(stderr, "cbs: illegal value for \"%s\": \"%s\"\n", arg, val); fprintf(stderr, "cbs: illegal value for \"%s\": \"%s\"\n", arg, val);
} }
static int cbs_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int cbs_parse_opt(struct qdisc_util *qu, int argc,
char **argv, struct nlmsghdr *n, const char *dev)
{ {
struct tc_cbs_qopt opt = {}; struct tc_cbs_qopt opt = {};
struct rtattr *tail; struct rtattr *tail;

View File

@ -33,7 +33,8 @@ static void explain2(void)
} }
static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
while (argc) { while (argc) {
if (strcmp(*argv, "help") == 0) { if (strcmp(*argv, "help") == 0) {

View File

@ -27,7 +27,8 @@ static void explain(void)
fprintf(stderr, "Usage: ... <[p|b]fifo | pfifo_head_drop> [ limit NUMBER ]\n"); fprintf(stderr, "Usage: ... <[p|b]fifo | pfifo_head_drop> [ limit NUMBER ]\n");
} }
static int fifo_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int fifo_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
int ok = 0; int ok = 0;
struct tc_fifo_qopt opt = {}; struct tc_fifo_qopt opt = {};

View File

@ -23,8 +23,8 @@
#include "utils.h" #include "utils.h"
#include "tc_util.h" #include "tc_util.h"
static int hfsc_get_sc(int *, char ***, struct tc_service_curve *, const char *); static int hfsc_get_sc(int *, char ***,
struct tc_service_curve *, const char *);
static void static void
explain_qdisc(void) explain_qdisc(void)
@ -70,7 +70,8 @@ explain1(char *arg)
} }
static int static int
hfsc_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) hfsc_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
struct tc_hfsc_qopt qopt = {}; struct tc_hfsc_qopt qopt = {};
@ -281,7 +282,8 @@ struct qdisc_util hfsc_qdisc_util = {
}; };
static int static int
hfsc_get_sc1(int *argcp, char ***argvp, struct tc_service_curve *sc, const char *dev) hfsc_get_sc1(int *argcp, char ***argvp,
struct tc_service_curve *sc, const char *dev)
{ {
char **argv = *argvp; char **argv = *argvp;
int argc = *argcp; int argc = *argcp;

View File

@ -58,8 +58,8 @@ static void explain1(char *arg)
explain(); explain();
} }
static int htb_parse_opt(struct qdisc_util *qu, int argc,
static int htb_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) char **argv, struct nlmsghdr *n, const char *dev)
{ {
unsigned int direct_qlen = ~0U; unsigned int direct_qlen = ~0U;
struct tc_htb_glob opt = { struct tc_htb_glob opt = {

View File

@ -27,7 +27,8 @@ static void explain(void)
fprintf(stderr, "Usage: ... prio bands NUMBER priomap P1 P2...[multiqueue]\n"); fprintf(stderr, "Usage: ... prio bands NUMBER priomap P1 P2...[multiqueue]\n");
} }
static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
int pmap_mode = 0; int pmap_mode = 0;
int idx = 0; int idx = 0;

View File

@ -32,7 +32,8 @@ static void explain(void)
fprintf(stderr, " [ecn] [harddrop]\n"); fprintf(stderr, " [ecn] [harddrop]\n");
} }
static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
struct tc_red_qopt opt = {}; struct tc_red_qopt opt = {};
unsigned int burst = 0; unsigned int burst = 0;

View File

@ -35,7 +35,8 @@ static void explain1(const char *arg, const char *val)
} }
static int tbf_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n, const char *dev) static int tbf_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n, const char *dev)
{ {
int ok = 0; int ok = 0;
struct tc_tbf_qopt opt = {}; struct tc_tbf_qopt opt = {};