diff options
Diffstat (limited to 'tc/q_choke.c')
-rw-r--r-- | tc/q_choke.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tc/q_choke.c b/tc/q_choke.c index bd9ceb84..a234d2e0 100644 --- a/tc/q_choke.c +++ b/tc/q_choke.c @@ -34,19 +34,17 @@ static void explain(void) static int choke_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) { - struct tc_red_qopt opt; - unsigned burst = 0; - unsigned avpkt = 1000; + struct tc_red_qopt opt = {}; + unsigned int burst = 0; + unsigned int avpkt = 1000; double probability = 0.02; - unsigned rate = 0; + unsigned int rate = 0; int ecn_ok = 0; int wlog; __u8 sbuf[256]; __u32 max_P; struct rtattr *tail; - memset(&opt, 0, sizeof(opt)); - while (argc > 0) { if (strcmp(*argv, "limit") == 0) { NEXT_ARG(); |