From: Andrew Collins Date: Mon, 11 Jun 2012 16:44:42 +0000 (-0600) Subject: Add 'ingress' to the list of recognized TC handles. X-Git-Tag: libnl3_2_11~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c532654014ae8f7ea91288281e8879aee1ac786;p=libnl Add 'ingress' to the list of recognized TC handles. Currently, rtnl_tc_handle2str understands the ingress handle but rtnl_tc_str2handle does not. This change lets rtnl_tc_str2handle recognize 'ingress' as a valid handle as well. --- 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 */