mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 10:00:07 +01:00
platform/trivial: rename enum value NM_IP_CONFIG_SOURCE_RTPROT_KERNEL
This source type was platform internal up to now. Next we will expose it.
This commit is contained in:
parent
e7f3ccf7cd
commit
85bf9ded2e
4 changed files with 6 additions and 6 deletions
|
|
@ -55,8 +55,8 @@ typedef enum {
|
|||
/* platform internal flag used to mark routes with RTM_F_CLONED. */
|
||||
_NM_IP_CONFIG_SOURCE_RTM_F_CLONED,
|
||||
|
||||
/* platform internal flag used to mark routes with protocol RTPROT_KERNEL. */
|
||||
_NM_IP_CONFIG_SOURCE_RTPROT_KERNEL,
|
||||
/* routes from platform with protocol RTPROT_KERNEL. */
|
||||
NM_IP_CONFIG_SOURCE_RTPROT_KERNEL,
|
||||
|
||||
NM_IP_CONFIG_SOURCE_KERNEL,
|
||||
NM_IP_CONFIG_SOURCE_SHARED,
|
||||
|
|
|
|||
|
|
@ -597,7 +597,7 @@ _nm_ip_config_source_to_rtprot (NMIPConfigSource source)
|
|||
case NM_IP_CONFIG_SOURCE_UNKNOWN:
|
||||
return RTPROT_UNSPEC;
|
||||
case NM_IP_CONFIG_SOURCE_KERNEL:
|
||||
case _NM_IP_CONFIG_SOURCE_RTPROT_KERNEL:
|
||||
case NM_IP_CONFIG_SOURCE_RTPROT_KERNEL:
|
||||
return RTPROT_KERNEL;
|
||||
case NM_IP_CONFIG_SOURCE_DHCP:
|
||||
return RTPROT_DHCP;
|
||||
|
|
@ -616,7 +616,7 @@ _nm_ip_config_source_from_rtprot (guint rtprot)
|
|||
case RTPROT_UNSPEC:
|
||||
return NM_IP_CONFIG_SOURCE_UNKNOWN;
|
||||
case RTPROT_KERNEL:
|
||||
return _NM_IP_CONFIG_SOURCE_RTPROT_KERNEL;
|
||||
return NM_IP_CONFIG_SOURCE_RTPROT_KERNEL;
|
||||
case RTPROT_REDIRECT:
|
||||
return NM_IP_CONFIG_SOURCE_KERNEL;
|
||||
case RTPROT_RA:
|
||||
|
|
|
|||
|
|
@ -2281,7 +2281,7 @@ static const char *
|
|||
source_to_string (NMIPConfigSource source)
|
||||
{
|
||||
switch (source) {
|
||||
case _NM_IP_CONFIG_SOURCE_RTPROT_KERNEL:
|
||||
case NM_IP_CONFIG_SOURCE_RTPROT_KERNEL:
|
||||
return "rtprot-kernel";
|
||||
case _NM_IP_CONFIG_SOURCE_RTM_F_CLONED:
|
||||
return "rtm-f-cloned";
|
||||
|
|
|
|||
|
|
@ -786,7 +786,7 @@ _vt_cmd_obj_is_visible_ipx_route (const NMPObject *obj)
|
|||
{
|
||||
NMIPConfigSource source = obj->ip_route.source;
|
||||
|
||||
return obj->object.ifindex > 0 && (source != _NM_IP_CONFIG_SOURCE_RTPROT_KERNEL && source != _NM_IP_CONFIG_SOURCE_RTM_F_CLONED);
|
||||
return obj->object.ifindex > 0 && (source != NM_IP_CONFIG_SOURCE_RTPROT_KERNEL && source != _NM_IP_CONFIG_SOURCE_RTM_F_CLONED);
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue