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/ip/ipneigh.c b/ip/ipneigh.c index 313cc63..93cfba2 100644 --- a/ip/ipneigh.c +++ b/ip/ipneigh.c
@@ -282,7 +282,7 @@ } if (tb[NDA_PROBES] && show_stats) { - __u32 p = *(__u32 *) RTA_DATA(tb[NDA_PROBES]); + __u32 p = rta_getattr_u32(tb[NDA_PROBES]); fprintf(fp, " probes %u", p); }