diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2011-07-26 13:50:49 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-01 18:05:00 -0700 |
commit | 76f793e3a47139d340185cbc1a314740c09b13d3 (patch) | |
tree | 9abd3f1753cb10d328cc87db365910ef2181ea69 /include/net/if_inet6.h | |
parent | 79f88ee9836d482891ba41b1a553e2baacf31b02 (diff) | |
download | op-kernel-dev-76f793e3a47139d340185cbc1a314740c09b13d3.zip op-kernel-dev-76f793e3a47139d340185cbc1a314740c09b13d3.tar.gz |
ipv6: updates to privacy addresses per RFC 4941.
Update the code to handle some of the differences between
RFC 3041 and RFC 4941, which obsoletes it. Also a couple
of janitorial fixes.
- Allow router advertisements to increase the lifetime of
temporary addresses. This was not allowed by RFC 3041,
but is specified by RFC 4941. It is useful when RA
lifetimes are lower than TEMP_{VALID,PREFERRED}_LIFETIME:
in this case, the previous code would delete or deprecate
addresses prematurely.
- Change the default of MAX_RETRY to 3 per RFC 4941.
- Add a comment to clarify that the preferred and valid
lifetimes in inet6_ifaddr are relative to the timestamp.
- Shorten lines to 80 characters in a couple of places.
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/if_inet6.h')
-rw-r--r-- | include/net/if_inet6.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index 11cf373..51a7031b 100644 --- a/include/net/if_inet6.h +++ b/include/net/if_inet6.h @@ -41,6 +41,7 @@ struct inet6_ifaddr { struct in6_addr addr; __u32 prefix_len; + /* In seconds, relative to tstamp. Expiry is at tstamp + HZ * lft. */ __u32 valid_lft; __u32 prefered_lft; atomic_t refcnt; |