mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 00:40:19 +01:00
ndisc/trivial: rename defines for defaults from RFC
These defaults are mentioned in RFC4861. Use a name that is the same as in the RFC.
This commit is contained in:
parent
4c2035347e
commit
6dad4a315f
4 changed files with 19 additions and 19 deletions
|
|
@ -372,7 +372,7 @@ nm_fake_ndisc_new(int ifindex, const char *ifname)
|
|||
NM_NDISC_ROUTER_SOLICITATIONS,
|
||||
NM_NDISC_ROUTER_SOLICITATIONS_DEFAULT,
|
||||
NM_NDISC_ROUTER_SOLICITATION_INTERVAL,
|
||||
NM_NDISC_ROUTER_SOLICITATION_INTERVAL_DEFAULT,
|
||||
NM_NDISC_RFC4861_RTR_SOLICITATION_INTERVAL,
|
||||
NM_NDISC_RA_TIMEOUT,
|
||||
30u,
|
||||
NULL);
|
||||
|
|
|
|||
|
|
@ -713,13 +713,12 @@ nm_lndp_ndisc_get_sysctl(NMPlatform *platform,
|
|||
NM_SET_OUT(out_router_solicitations, router_solicitations);
|
||||
}
|
||||
if (out_router_solicitation_interval || out_default_ra_timeout) {
|
||||
router_solicitation_interval =
|
||||
ipv6_sysctl_get(platform,
|
||||
ifname,
|
||||
"router_solicitation_interval",
|
||||
1,
|
||||
G_MAXINT32,
|
||||
NM_NDISC_ROUTER_SOLICITATION_INTERVAL_DEFAULT);
|
||||
router_solicitation_interval = ipv6_sysctl_get(platform,
|
||||
ifname,
|
||||
"router_solicitation_interval",
|
||||
1,
|
||||
G_MAXINT32,
|
||||
NM_NDISC_RFC4861_RTR_SOLICITATION_INTERVAL);
|
||||
NM_SET_OUT(out_router_solicitation_interval, router_solicitation_interval);
|
||||
}
|
||||
if (out_default_ra_timeout) {
|
||||
|
|
|
|||
|
|
@ -1680,7 +1680,7 @@ nm_ndisc_class_init(NMNDiscClass *klass)
|
|||
"",
|
||||
1,
|
||||
G_MAXINT32,
|
||||
NM_NDISC_ROUTER_SOLICITATION_INTERVAL_DEFAULT,
|
||||
NM_NDISC_RFC4861_RTR_SOLICITATION_INTERVAL,
|
||||
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
obj_properties[PROP_NODE_TYPE] =
|
||||
g_param_spec_int(NM_NDISC_NODE_TYPE,
|
||||
|
|
|
|||
|
|
@ -155,16 +155,17 @@ typedef enum {
|
|||
NM_NDISC_NODE_TYPE_ROUTER,
|
||||
} NMNDiscNodeType;
|
||||
|
||||
#define NM_NDISC_MAX_ADDRESSES_DEFAULT 16
|
||||
#define NM_NDISC_MAX_RTR_SOLICITATION_DELAY 1 /* RFC4861 MAX_RTR_SOLICITATION_DELAY */
|
||||
#define NM_NDISC_ROUTER_SOLICITATIONS_DEFAULT 3 /* RFC4861 MAX_RTR_SOLICITATIONS */
|
||||
#define NM_NDISC_ROUTER_SOLICITATION_INTERVAL_DEFAULT 4 /* RFC4861 RTR_SOLICITATION_INTERVAL */
|
||||
#define NM_NDISC_ROUTER_ADVERTISEMENTS_DEFAULT 3 /* RFC4861 MAX_INITIAL_RTR_ADVERTISEMENTS */
|
||||
#define NM_NDISC_ROUTER_ADVERT_DELAY 3 /* RFC4861 MIN_DELAY_BETWEEN_RAS */
|
||||
#define NM_NDISC_ROUTER_ADVERT_INITIAL_INTERVAL 16 /* RFC4861 MAX_INITIAL_RTR_ADVERT_INTERVAL */
|
||||
#define NM_NDISC_ROUTER_ADVERT_DELAY_MS 500 /* RFC4861 MAX_RA_DELAY_TIME */
|
||||
#define NM_NDISC_ROUTER_ADVERT_MAX_INTERVAL 600 /* RFC4861 MaxRtrAdvInterval default */
|
||||
#define NM_NDISC_ROUTER_LIFETIME 900 /* 1.5 * NM_NDISC_ROUTER_ADVERT_MAX_INTERVAL */
|
||||
#define NM_NDISC_RFC4861_RTR_SOLICITATION_INTERVAL 4 /* seconds */
|
||||
#define NM_NDISC_RFC4861_MAX_RTR_SOLICITATION_DELAY 1 /* seconds */
|
||||
|
||||
#define NM_NDISC_MAX_ADDRESSES_DEFAULT 16
|
||||
#define NM_NDISC_ROUTER_SOLICITATIONS_DEFAULT 3 /* RFC4861, MAX_RTR_SOLICITATIONS */
|
||||
#define NM_NDISC_ROUTER_ADVERTISEMENTS_DEFAULT 3 /* RFC4861, MAX_INITIAL_RTR_ADVERTISEMENTS */
|
||||
#define NM_NDISC_ROUTER_ADVERT_DELAY 3 /* RFC4861, MIN_DELAY_BETWEEN_RAS */
|
||||
#define NM_NDISC_ROUTER_ADVERT_INITIAL_INTERVAL 16 /* RFC4861, MAX_INITIAL_RTR_ADVERT_INTERVAL */
|
||||
#define NM_NDISC_ROUTER_ADVERT_DELAY_MS 500 /* RFC4861, MAX_RA_DELAY_TIME */
|
||||
#define NM_NDISC_ROUTER_ADVERT_MAX_INTERVAL 600 /* RFC4861, MaxRtrAdvInterval default */
|
||||
#define NM_NDISC_ROUTER_LIFETIME 900 /* 1.5 * NM_NDISC_ROUTER_ADVERT_MAX_INTERVAL */
|
||||
|
||||
struct _NMNDiscPrivate;
|
||||
struct _NMNDiscDataInternal;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue