diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-10-25 01:21:22 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-10-27 19:27:07 +0900 |
commit | 0945767012413d4212df25370a14286fa1425d10 (patch) | |
tree | b60ba55c89ae3e6ea530327a2185e6f9f8b146e4 /src/libsystemd-network/radv-internal.h | |
parent | 72db0a714b3fe181d06cccaae27d62b92ea5c196 (diff) | |
download | systemd-0945767012413d4212df25370a14286fa1425d10.tar.gz |
sd-radv: router lifetime must be 0 or between 4 seconds and 9000 seconds
See RFC 4861 section 6.2.1.
Diffstat (limited to 'src/libsystemd-network/radv-internal.h')
-rw-r--r-- | src/libsystemd-network/radv-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/radv-internal.h b/src/libsystemd-network/radv-internal.h index 6d8ad60b48..1f1c248c0a 100644 --- a/src/libsystemd-network/radv-internal.h +++ b/src/libsystemd-network/radv-internal.h @@ -34,6 +34,8 @@ * point-to-point link the peers may have enough information about the number and status of devices at * the other end so that advertisements are needed less frequently. * Default: 3 * MaxRtrAdvInterval */ +#define RADV_MIN_ROUTER_LIFETIME_USEC (4 * USEC_PER_SEC) +#define RADV_MAX_ROUTER_LIFETIME_USEC (9000 * USEC_PER_SEC) #define RADV_DEFAULT_ROUTER_LIFETIME_USEC (3 * RADV_DEFAULT_MAX_TIMEOUT_USEC) /* RFC 4861 section 10. * MAX_INITIAL_RTR_ADVERT_INTERVAL 16 seconds |