diff options
Diffstat (limited to 'tc/m_bpf.c')
-rw-r--r-- | tc/m_bpf.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -63,7 +63,7 @@ static int bpf_parse_opt(struct action_util *a, int *ptr_argc, char ***ptr_argv, int tca_id, struct nlmsghdr *n) { const char *bpf_obj = NULL, *bpf_uds_name = NULL; - struct tc_act_bpf parm; + struct tc_act_bpf parm = { .action = TC_ACT_PIPE }; bool seen_run = false; struct rtattr *tail; int argc, ret = 0; @@ -104,9 +104,6 @@ opt_bpf: NEXT_ARG_FWD(); } - memset(&parm, 0, sizeof(parm)); - parm.action = TC_ACT_PIPE; - if (argc) { if (matches(*argv, "reclassify") == 0) { parm.action = TC_ACT_RECLASSIFY; |