platform/trivial: add code-comment dividers between different sections of the source file
This commit is contained in:
@@ -3302,6 +3302,8 @@ slave_get_option (NMPlatform *platform, int slave, const char *option)
|
|||||||
return link_get_option (platform, slave, slave_category (platform, slave), option);
|
return link_get_option (platform, slave, slave_category (platform, slave), option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
infiniband_partition_add (NMPlatform *platform, int parent, int p_key, NMPlatformLink *out_link)
|
infiniband_partition_add (NMPlatform *platform, int parent, int p_key, NMPlatformLink *out_link)
|
||||||
{
|
{
|
||||||
@@ -3441,6 +3443,8 @@ infiniband_get_info (NMPlatform *platform, int ifindex, int *parent, int *p_key,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
veth_get_properties (NMPlatform *platform, int ifindex, NMPlatformVethProperties *props)
|
veth_get_properties (NMPlatform *platform, int ifindex, NMPlatformVethProperties *props)
|
||||||
{
|
{
|
||||||
@@ -3459,6 +3463,8 @@ veth_get_properties (NMPlatform *platform, int ifindex, NMPlatformVethProperties
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
tun_get_properties_ifname (NMPlatform *platform, const char *ifname, NMPlatformTunProperties *props)
|
tun_get_properties_ifname (NMPlatform *platform, const char *ifname, NMPlatformTunProperties *props)
|
||||||
{
|
{
|
||||||
@@ -3527,6 +3533,8 @@ tun_get_properties (NMPlatform *platform, int ifindex, NMPlatformTunProperties *
|
|||||||
return tun_get_properties_ifname (platform, nm_platform_link_get_name (platform, ifindex), props);
|
return tun_get_properties_ifname (platform, nm_platform_link_get_name (platform, ifindex), props);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static const struct nla_policy macvlan_info_policy[IFLA_MACVLAN_MAX + 1] = {
|
static const struct nla_policy macvlan_info_policy[IFLA_MACVLAN_MAX + 1] = {
|
||||||
[IFLA_MACVLAN_MODE] = { .type = NLA_U32 },
|
[IFLA_MACVLAN_MODE] = { .type = NLA_U32 },
|
||||||
#ifdef MACVLAN_FLAG_NOPROMISC
|
#ifdef MACVLAN_FLAG_NOPROMISC
|
||||||
@@ -3594,6 +3602,8 @@ macvlan_get_properties (NMPlatform *platform, int ifindex, NMPlatformMacvlanProp
|
|||||||
return (err == 0);
|
return (err == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
/* The installed kernel headers might not have VXLAN stuff at all, or
|
/* The installed kernel headers might not have VXLAN stuff at all, or
|
||||||
* they might have the original properties, but not PORT, GROUP6, or LOCAL6.
|
* they might have the original properties, but not PORT, GROUP6, or LOCAL6.
|
||||||
* So until we depend on kernel >= 3.11, we just ignore the actual enum
|
* So until we depend on kernel >= 3.11, we just ignore the actual enum
|
||||||
@@ -3725,6 +3735,8 @@ vxlan_get_properties (NMPlatform *platform, int ifindex, NMPlatformVxlanProperti
|
|||||||
return (err == 0);
|
return (err == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static const struct nla_policy gre_info_policy[IFLA_GRE_MAX + 1] = {
|
static const struct nla_policy gre_info_policy[IFLA_GRE_MAX + 1] = {
|
||||||
[IFLA_GRE_LINK] = { .type = NLA_U32 },
|
[IFLA_GRE_LINK] = { .type = NLA_U32 },
|
||||||
[IFLA_GRE_IFLAGS] = { .type = NLA_U16 },
|
[IFLA_GRE_IFLAGS] = { .type = NLA_U16 },
|
||||||
@@ -3779,6 +3791,8 @@ gre_get_properties (NMPlatform *platform, int ifindex, NMPlatformGreProperties *
|
|||||||
return (err == 0);
|
return (err == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static WifiData *
|
static WifiData *
|
||||||
wifi_get_wifi_data (NMPlatform *platform, int ifindex)
|
wifi_get_wifi_data (NMPlatform *platform, int ifindex)
|
||||||
{
|
{
|
||||||
@@ -3913,6 +3927,7 @@ wifi_indicate_addressing_running (NMPlatform *platform, int ifindex, gboolean ru
|
|||||||
wifi_utils_indicate_addressing_running (wifi_data, running);
|
wifi_utils_indicate_addressing_running (wifi_data, running);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static guint32
|
static guint32
|
||||||
mesh_get_channel (NMPlatform *platform, int ifindex)
|
mesh_get_channel (NMPlatform *platform, int ifindex)
|
||||||
@@ -3947,6 +3962,8 @@ mesh_set_ssid (NMPlatform *platform, int ifindex, const guint8 *ssid, gsize len)
|
|||||||
return wifi_utils_set_mesh_ssid (wifi_data, ssid, len);
|
return wifi_utils_set_mesh_ssid (wifi_data, ssid, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
link_get_wake_on_lan (NMPlatform *platform, int ifindex)
|
link_get_wake_on_lan (NMPlatform *platform, int ifindex)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user