diff options
author | Thomas Haller <thaller@redhat.com> | 2020-05-05 10:46:31 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-05-08 08:02:48 +0200 |
commit | adf377c2c0601db290ef785df4e9dce12d47f35a (patch) | |
tree | 2cecb2d8d3c4ddb3244a83986fcb8a25fb9840fc | |
parent | 4338cf3800848b0450a47f9788f1c4f23a23142e (diff) | |
download | NetworkManager-adf377c2c0601db290ef785df4e9dce12d47f35a.tar.gz |
libnm: move defines for bridge defaults to "nm-core-internal.h" header
-rw-r--r-- | libnm-core/nm-core-internal.h | 21 | ||||
-rw-r--r-- | libnm-core/nm-setting-bridge.c | 21 |
2 files changed, 21 insertions, 21 deletions
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h index bcf3cb406b..c1f6fd5fa2 100644 --- a/libnm-core/nm-core-internal.h +++ b/libnm-core/nm-core-internal.h @@ -100,6 +100,27 @@ #define NM_BR_MIN_MULTICAST_HASH_MAX 1 #define NM_BR_MAX_MULTICAST_HASH_MAX G_MAXUINT32 +#define BRIDGE_AGEING_TIME_DEFAULT 300 +#define BRIDGE_FORWARD_DELAY_DEFAULT 15 +#define BRIDGE_HELLO_TIME_DEFAULT 2 +#define BRIDGE_MAX_AGE_DEFAULT 20 +#define BRIDGE_MULTICAST_LAST_MEMBER_COUNT_DEFAULT 2 +#define BRIDGE_MULTICAST_LAST_MEMBER_INTERVAL_DEFAULT 100 +#define BRIDGE_MULTICAST_MEMBERSHIP_INTERVAL_DEFAULT 26000 +#define BRIDGE_MULTICAST_QUERIER_INTERVAL_DEFAULT 25500 +#define BRIDGE_MULTICAST_HASH_MAX_DEFAULT 4096 +#define BRIDGE_MULTICAST_QUERIER_DEFAULT FALSE +#define BRIDGE_MULTICAST_QUERY_INTERVAL_DEFAULT 12500 +#define BRIDGE_MULTICAST_QUERY_RESPONSE_INTERVAL_DEFAULT 1000 +#define BRIDGE_MULTICAST_QUERY_USE_IFADDR_DEFAULT FALSE +#define BRIDGE_MULTICAST_SNOOPING_DEFAULT TRUE +#define BRIDGE_MULTICAST_STARTUP_QUERY_COUNT_DEFAULT 2 +#define BRIDGE_MULTICAST_STARTUP_QUERY_INTERVAL_DEFAULT 3125 +#define BRIDGE_PRIORITY_DEFAULT 0x8000 +#define BRIDGE_STP_DEFAULT TRUE +#define BRIDGE_VLAN_DEFAULT_PVID_DEFAULT 1 +#define BRIDGE_VLAN_STATS_ENABLED_DEFAULT FALSE + /* NM_SETTING_COMPARE_FLAG_INFERRABLE: check whether a device-generated * connection can be replaced by a already-defined connection. This flag only * takes into account properties marked with the %NM_SETTING_PARAM_INFERRABLE diff --git a/libnm-core/nm-setting-bridge.c b/libnm-core/nm-setting-bridge.c index 2b6d1ef5d5..76bffbc8f8 100644 --- a/libnm-core/nm-setting-bridge.c +++ b/libnm-core/nm-setting-bridge.c @@ -22,27 +22,6 @@ * necessary for bridging connections. **/ -#define BRIDGE_AGEING_TIME_DEFAULT 300 -#define BRIDGE_FORWARD_DELAY_DEFAULT 15 -#define BRIDGE_HELLO_TIME_DEFAULT 2 -#define BRIDGE_MAX_AGE_DEFAULT 20 -#define BRIDGE_MULTICAST_LAST_MEMBER_COUNT_DEFAULT 2 -#define BRIDGE_MULTICAST_LAST_MEMBER_INTERVAL_DEFAULT 100 -#define BRIDGE_MULTICAST_MEMBERSHIP_INTERVAL_DEFAULT 26000 -#define BRIDGE_MULTICAST_QUERIER_INTERVAL_DEFAULT 25500 -#define BRIDGE_MULTICAST_HASH_MAX_DEFAULT 4096 -#define BRIDGE_MULTICAST_QUERIER_DEFAULT FALSE -#define BRIDGE_MULTICAST_QUERY_INTERVAL_DEFAULT 12500 -#define BRIDGE_MULTICAST_QUERY_RESPONSE_INTERVAL_DEFAULT 1000 -#define BRIDGE_MULTICAST_QUERY_USE_IFADDR_DEFAULT FALSE -#define BRIDGE_MULTICAST_SNOOPING_DEFAULT TRUE -#define BRIDGE_MULTICAST_STARTUP_QUERY_COUNT_DEFAULT 2 -#define BRIDGE_MULTICAST_STARTUP_QUERY_INTERVAL_DEFAULT 3125 -#define BRIDGE_PRIORITY_DEFAULT 0x8000 -#define BRIDGE_STP_DEFAULT TRUE -#define BRIDGE_VLAN_DEFAULT_PVID_DEFAULT 1 -#define BRIDGE_VLAN_STATS_ENABLED_DEFAULT FALSE - /*****************************************************************************/ NM_GOBJECT_PROPERTIES_DEFINE (NMSettingBridge, |