Commit ed01e390 authored by Masahide NAKAMURA's avatar Masahide NAKAMURA Committed by Stephen Hemminger

ip: xfrm: Clean-up for internal mask to filter.

Remove unused or redundant usage for xfrm_filter.
Signed-off-by: default avatarMasahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
parent 2da55b1b
...@@ -222,16 +222,10 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv) ...@@ -222,16 +222,10 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv)
NEXT_ARG(); NEXT_ARG();
xfrm_policy_dir_parse(&req.xpinfo.dir, &argc, &argv); xfrm_policy_dir_parse(&req.xpinfo.dir, &argc, &argv);
filter.dir_mask = XFRM_FILTER_MASK_FULL;
} else if (strcmp(*argv, "index") == 0) { } else if (strcmp(*argv, "index") == 0) {
NEXT_ARG(); NEXT_ARG();
if (get_u32(&req.xpinfo.index, *argv, 0)) if (get_u32(&req.xpinfo.index, *argv, 0))
invarg("\"INDEX\" is invalid", *argv); invarg("\"INDEX\" is invalid", *argv);
filter.index_mask = XFRM_FILTER_MASK_FULL;
} else if (strcmp(*argv, "ptype") == 0) { } else if (strcmp(*argv, "ptype") == 0) {
if (ptypep) if (ptypep)
duparg("ptype", *argv); duparg("ptype", *argv);
...@@ -239,9 +233,6 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv) ...@@ -239,9 +233,6 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv)
NEXT_ARG(); NEXT_ARG();
xfrm_policy_ptype_parse(&upt.type, &argc, &argv); xfrm_policy_ptype_parse(&upt.type, &argc, &argv);
filter.dir_mask = XFRM_FILTER_MASK_FULL;
} else if (strcmp(*argv, "action") == 0) { } else if (strcmp(*argv, "action") == 0) {
NEXT_ARG(); NEXT_ARG();
if (strcmp(*argv, "allow") == 0) if (strcmp(*argv, "allow") == 0)
...@@ -250,16 +241,10 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv) ...@@ -250,16 +241,10 @@ static int xfrm_policy_modify(int cmd, unsigned flags, int argc, char **argv)
req.xpinfo.action = XFRM_POLICY_BLOCK; req.xpinfo.action = XFRM_POLICY_BLOCK;
else else
invarg("\"action\" value is invalid\n", *argv); invarg("\"action\" value is invalid\n", *argv);
filter.action_mask = XFRM_FILTER_MASK_FULL;
} else if (strcmp(*argv, "priority") == 0) { } else if (strcmp(*argv, "priority") == 0) {
NEXT_ARG(); NEXT_ARG();
if (get_u32(&req.xpinfo.priority, *argv, 0)) if (get_u32(&req.xpinfo.priority, *argv, 0))
invarg("\"PRIORITY\" is invalid", *argv); invarg("\"PRIORITY\" is invalid", *argv);
filter.priority_mask = XFRM_FILTER_MASK_FULL;
} else if (strcmp(*argv, "limit") == 0) { } else if (strcmp(*argv, "limit") == 0) {
NEXT_ARG(); NEXT_ARG();
xfrm_lifetime_cfg_parse(&req.xpinfo.lft, &argc, &argv); xfrm_lifetime_cfg_parse(&req.xpinfo.lft, &argc, &argv);
...@@ -888,8 +873,6 @@ static int xfrm_policy_flush(int argc, char **argv) ...@@ -888,8 +873,6 @@ static int xfrm_policy_flush(int argc, char **argv)
NEXT_ARG(); NEXT_ARG();
xfrm_policy_ptype_parse(&upt.type, &argc, &argv); xfrm_policy_ptype_parse(&upt.type, &argc, &argv);
filter.dir_mask = XFRM_FILTER_MASK_FULL;
} else } else
invarg("unknown", *argv); invarg("unknown", *argv);
......
...@@ -216,8 +216,6 @@ static int xfrm_state_flag_parse(__u8 *flags, int *argcp, char ***argvp) ...@@ -216,8 +216,6 @@ static int xfrm_state_flag_parse(__u8 *flags, int *argcp, char ***argvp)
} }
} }
filter.state_flags_mask = XFRM_FILTER_MASK_FULL;
*argcp = argc; *argcp = argc;
*argvp = argv; *argvp = argv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment