commit | ff24746cca1ef0c92d46614158e6672acd6b63d3 | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <shemminger@vyatta.com> | Tue Apr 10 08:47:55 2012 -0700 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Tue Apr 10 08:47:55 2012 -0700 |
tree | 05c1317f25238efa48ec7f79cdb82c4044175dbe | |
parent | 49b730d7b237a3c0b2361e77877228199f32cf9c [diff] [blame] |
Convert to use rta_getattr_ functions User new functions (inspired by libmnl) to do type safe access of routeing attributes
diff --git a/tc/tc_filter.c b/tc/tc_filter.c index d4b0b67..207302f 100644 --- a/tc/tc_filter.c +++ b/tc/tc_filter.c
@@ -240,7 +240,7 @@ fprintf(fp, "pref %u ", prio); } } - fprintf(fp, "%s ", (char*)RTA_DATA(tb[TCA_KIND])); + fprintf(fp, "%s ", rta_getattr_str(tb[TCA_KIND])); q = get_filter_kind(RTA_DATA(tb[TCA_KIND])); if (tb[TCA_OPTIONS]) { if (q)