[PATCH 1/1] docs: add code comment to explain the meaning of the fields in rtnl_addr_cacheinfo

Thomas Haller thaller at redhat.com
Thu Apr 3 08:47:37 PDT 2014


Signed-off-by: Thomas Haller <thaller at redhat.com>
---
 include/netlink-private/types.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/netlink-private/types.h b/include/netlink-private/types.h
index 6f21311..3ff4fe1 100644
--- a/include/netlink-private/types.h
+++ b/include/netlink-private/types.h
@@ -225,16 +225,16 @@ struct rtnl_neigh
 
 struct rtnl_addr_cacheinfo
 {
-	/* Preferred lifetime in seconds */
+	/* Preferred lifetime in seconds, ticking from when the message gets constructed */
 	uint32_t aci_prefered;
 
-	/* Valid lifetime in seconds */
+	/* Valid lifetime in seconds, ticking from when the message gets constructed */
 	uint32_t aci_valid;
 
-	/* Timestamp of creation in 1/100s since boottime */
+	/* Timestamp of creation in 1/100s since boottime, clock_gettime(CLOCK_MONOTONIC) */
 	uint32_t aci_cstamp;
 
-	/* Timestamp of last update in 1/100s since boottime */
+	/* Timestamp of last update in 1/100s since boottime, clock_gettime(CLOCK_MONOTONIC) */
 	uint32_t aci_tstamp;
 };
 
-- 
1.9.0




More information about the libnl mailing list