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/ipxfrm.c b/ip/ipxfrm.c index f55bff9..c7b3420 100644 --- a/ip/ipxfrm.c +++ b/ip/ipxfrm.c
@@ -806,7 +806,7 @@ return; } - lastused = *(__u64 *)RTA_DATA(tb[XFRMA_LASTUSED]); + lastused = rta_getattr_u64(tb[XFRMA_LASTUSED]); fprintf(fp, "%s", strxf_time(lastused)); fprintf(fp, "%s", _SL_);