diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-10 08:47:55 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-10 08:47:55 -0700 |
commit | ff24746cca1ef0c92d46614158e6672acd6b63d3 (patch) | |
tree | 05c1317f25238efa48ec7f79cdb82c4044175dbe /tc/q_choke.c | |
parent | 49b730d7b237a3c0b2361e77877228199f32cf9c (diff) | |
download | platform_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/q_choke.c')
-rw-r--r-- | tc/q_choke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/q_choke.c b/tc/q_choke.c index c616926f..6fbcadf3 100644 --- a/tc/q_choke.c +++ b/tc/q_choke.c @@ -182,7 +182,7 @@ static int choke_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) 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); |