aboutsummaryrefslogtreecommitdiffstats
path: root/tc/tc_class.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-04-10 08:47:55 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-04-10 08:47:55 -0700
commitff24746cca1ef0c92d46614158e6672acd6b63d3 (patch)
tree05c1317f25238efa48ec7f79cdb82c4044175dbe /tc/tc_class.c
parent49b730d7b237a3c0b2361e77877228199f32cf9c (diff)
downloadplatform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.tar.gz
platform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.tar.bz2
platform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.zip
Convert to use rta_getattr_ functions
User new functions (inspired by libmnl) to do type safe access of routeing attributes
Diffstat (limited to 'tc/tc_class.c')
-rw-r--r--tc/tc_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/tc_class.c b/tc/tc_class.c
index 3a1a0ac0..de18fd11 100644
--- a/tc/tc_class.c
+++ b/tc/tc_class.c
@@ -191,7 +191,7 @@ int print_class(const struct sockaddr_nl *who,
else
print_tc_classid(abuf, sizeof(abuf), t->tcm_handle);
}
- fprintf(fp, "class %s %s ", (char*)RTA_DATA(tb[TCA_KIND]), abuf);
+ fprintf(fp, "class %s %s ", rta_getattr_str(tb[TCA_KIND]), abuf);
if (filter_ifindex == 0)
fprintf(fp, "dev %s ", ll_index_to_name(t->tcm_ifindex));