aboutsummaryrefslogtreecommitdiffstats
path: root/tc/f_flower.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/f_flower.c')
-rw-r--r--tc/f_flower.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tc/f_flower.c b/tc/f_flower.c
index 99e62a38..b1802107 100644
--- a/tc/f_flower.c
+++ b/tc/f_flower.c
@@ -630,6 +630,8 @@ static int flower_parse_opt(struct filter_util *qu, char *handle,
flags |= TCA_CLS_FLAGS_SKIP_SW;
} else if (matches(*argv, "indev") == 0) {
NEXT_ARG();
+ if (check_ifname(*argv))
+ invarg("\"indev\" not a valid ifname", *argv);
addattrstrz(n, MAX_MSG, TCA_FLOWER_INDEV, *argv);
} else if (matches(*argv, "vlan_id") == 0) {
__u16 vid;