From: Alex Henrie Date: Mon, 11 Nov 2024 06:20:06 +0000 (-0700) Subject: rtnetlink.7: Document struct ifa_cacheinfo X-Git-Tag: man-pages-6.10~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb801003747466333742aeb0e25abb8235ca4776;p=thirdparty%2Fman-pages.git rtnetlink.7: Document struct ifa_cacheinfo struct ifa_cacheinfo contains the address's creation time, update time, preferred lifetime remaining, and valid lifetime remaining. Link: Cc: Signed-off-by: Alex Henrie Message-ID: <20241111062205.207027-1-alexhenrie24@gmail.com> Reviewed-by: Kuniyuki Iwashima Signed-off-by: Alejandro Colomar --- diff --git a/man/man7/rtnetlink.7 b/man/man7/rtnetlink.7 index 86ed459bb..099edd100 100644 --- a/man/man7/rtnetlink.7 +++ b/man/man7/rtnetlink.7 @@ -176,7 +176,24 @@ IFA_BROADCAST:raw protocol address:broadcast address IFA_ANYCAST:raw protocol address:anycast address IFA_CACHEINFO:struct ifa_cacheinfo:Address information .TE -.\" FIXME Document struct ifa_cacheinfo +.IP +.EX +struct ifa_cacheinfo { + __u32 ifa_prefered; // Preferred lifetime remaining, in seconds + __u32 ifa_valid; // Valid lifetime remaining, in seconds + __u32 cstamp; // Creation timestamp, in centiseconds + __u32 tstamp; // Update timestamp, in centiseconds +}; +.EE +.IP +.I ifa_valid +cannot be zero, and +.I ifa_prefered +cannot be greater than +.IR ifa_valid . +A value of +.B UINT32_MAX +represents an infinite lifetime. .TP .B RTM_NEWROUTE .TQ