summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/route/classid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/route/classid.c b/lib/route/classid.c
index 7b52de8..e1880af 100644
--- a/lib/route/classid.c
+++ b/lib/route/classid.c
@@ -166,6 +166,11 @@ int rtnl_tc_str2handle(const char *str, uint32_t *res)
return 0;
}
+ if (!strcasecmp(str, "ingress")) {
+ *res = TC_H_INGRESS;
+ return 0;
+ }
+
h = strtoul(str, &colon, 16);
/* MAJ is not a number */