platform: add NM_IP_CONFIG_SOURCE_IP6LL source type
We already have IP4LL and maybe should re-use that also for IPv6. However, when adding the prefix route for IPv6 link local addresses, we want to add it with protocol "kernel", unlike "user" for IPv4. There is no strong reason for this. I don't think the protocol matters much. But up to now kernel automatically adds this prefix route, so as we are going to change that and let NetworkManager add it, keep the protocol at "kernel".
This commit is contained in:
@@ -95,6 +95,7 @@ typedef enum {
|
||||
NM_IP_CONFIG_SOURCE_KERNEL,
|
||||
NM_IP_CONFIG_SOURCE_SHARED,
|
||||
NM_IP_CONFIG_SOURCE_IP4LL,
|
||||
NM_IP_CONFIG_SOURCE_IP6LL,
|
||||
NM_IP_CONFIG_SOURCE_PPP,
|
||||
NM_IP_CONFIG_SOURCE_WWAN,
|
||||
NM_IP_CONFIG_SOURCE_VPN,
|
||||
|
@@ -589,6 +589,8 @@ nmp_utils_ip_config_source_coerce_to_rtprot (NMIPConfigSource source)
|
||||
switch (source) {
|
||||
case NM_IP_CONFIG_SOURCE_KERNEL:
|
||||
return RTPROT_KERNEL;
|
||||
case NM_IP_CONFIG_SOURCE_IP6LL:
|
||||
return RTPROT_KERNEL;
|
||||
case NM_IP_CONFIG_SOURCE_DHCP:
|
||||
return RTPROT_DHCP;
|
||||
case NM_IP_CONFIG_SOURCE_NDISC:
|
||||
@@ -656,6 +658,7 @@ nmp_utils_ip_config_source_to_string (NMIPConfigSource source, char *buf, gsize
|
||||
case NM_IP_CONFIG_SOURCE_KERNEL: s = "kernel"; break;
|
||||
case NM_IP_CONFIG_SOURCE_SHARED: s = "shared"; break;
|
||||
case NM_IP_CONFIG_SOURCE_IP4LL: s = "ipv4ll"; break;
|
||||
case NM_IP_CONFIG_SOURCE_IP6LL: s = "ipv6ll"; break;
|
||||
case NM_IP_CONFIG_SOURCE_PPP: s = "ppp"; break;
|
||||
case NM_IP_CONFIG_SOURCE_WWAN: s = "wwan"; break;
|
||||
case NM_IP_CONFIG_SOURCE_VPN: s = "vpn"; break;
|
||||
|
Reference in New Issue
Block a user