Convert to use rta_getattr_ functions
User new functions (inspired by libmnl) to do type safe access
of routeing attributes
diff --git a/tc/q_choke.c b/tc/q_choke.c
index c616926..6fbcadf 100644
--- a/tc/q_choke.c
+++ b/tc/q_choke.c
@@ -182,7 +182,7 @@
return -1;
if (tb[TCA_CHOKE_MAX_P] &&
RTA_PAYLOAD(tb[TCA_CHOKE_MAX_P]) >= sizeof(__u32))
- max_P = *(__u32 *)RTA_DATA(tb[TCA_CHOKE_MAX_P]);
+ max_P = rta_getattr_u32(tb[TCA_CHOKE_MAX_P]);
fprintf(f, "limit %up min %up max %up ",
qopt->limit, qopt->qth_min, qopt->qth_max);