summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-vlan.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-12-19 11:19:17 -0600
committerDan Williams <dcbw@redhat.com>2012-02-16 15:05:55 -0600
commit552c9959cccf42c631a181b03583acbe3a4b1697 (patch)
tree577cf086f2904d9fe99409b612c1fe5f5eb14f5c /libnm-util/nm-setting-vlan.h
parent23c1b6ad30c016d856c0c5412afa7bc57e424e83 (diff)
downloadNetworkManager-552c9959cccf42c631a181b03583acbe3a4b1697.tar.gz
libnm-util: various cleanups and documentation fixes
Add documentation so the API spec generator can do something for the VLAN setting. Also enforce validation of the ingress and egress priority maps; 802.1D priorities are limited to values from 0 - 7 and Linux SKB values are 32 bits. Also, the 'slave' property is a duplicate of the 'master' property added to NMSettingConnection in the bonding work so we can get rid of it and use 'master' instead.
Diffstat (limited to 'libnm-util/nm-setting-vlan.h')
-rw-r--r--libnm-util/nm-setting-vlan.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libnm-util/nm-setting-vlan.h b/libnm-util/nm-setting-vlan.h
index fb238a0f43..9329368d1d 100644
--- a/libnm-util/nm-setting-vlan.h
+++ b/libnm-util/nm-setting-vlan.h
@@ -55,7 +55,6 @@ typedef enum {
GQuark nm_setting_vlan_error_quark (void);
#define NM_SETTING_VLAN_INTERFACE_NAME "interface-name"
-#define NM_SETTING_VLAN_SLAVE "slave"
#define NM_SETTING_VLAN_ID "id"
#define NM_SETTING_VLAN_FLAGS "flags"
#define NM_SETTING_VLAN_INGRESS_PRIORITY_MAP "ingress-priority-map"
@@ -80,8 +79,8 @@ typedef struct {
* @NM_VLAN_INGRESS_MAP: map for incoming data
* @NM_VLAN_EGRESS_MAP: map for outgoing data
*
- * A selector for traffic QoS priority maps; these map outgoing packet priorities
- * to VLAN QoS priorities.
+ * A selector for traffic priority maps; these map Linux SKB priorities
+ * to 802.1p priorities used in VLANs.
**/
typedef enum {
NM_VLAN_INGRESS_MAP,
@@ -104,13 +103,14 @@ typedef enum {
NM_VLAN_FLAG_REORDER_HEADERS = 0x1,
NM_VLAN_FLAG_GVRP = 0x2,
NM_VLAN_FLAG_LOOSE_BINDING = 0x4,
+
+ /* NOTE: if adding flags update nm-setting-vlan.c::verify() */
} NMVlanFlags;
GType nm_setting_vlan_get_type (void);
NMSetting *nm_setting_vlan_new (void);
const char *nm_setting_vlan_get_interface_name (NMSettingVlan *setting);
-const char *nm_setting_vlan_get_slave (NMSettingVlan *setting);
guint32 nm_setting_vlan_get_id (NMSettingVlan *setting);
guint32 nm_setting_vlan_get_flags (NMSettingVlan *setting);