NMDeviceVlan

NMDeviceVlan

Synopsis

#define             NM_DEVICE_VLAN_HW_ADDRESS
#define             NM_DEVICE_VLAN_CARRIER
#define             NM_DEVICE_VLAN_VLAN_ID
                    NMDeviceVlan;
GObject *           nm_device_vlan_new                  (DBusGConnection *connection,
                                                         const char *path);
const char *        nm_device_vlan_get_hw_address       (NMDeviceVlan *device);
gboolean            nm_device_vlan_get_carrier          (NMDeviceVlan *device);
guint               nm_device_vlan_get_vlan_id          (NMDeviceVlan *device);

Object Hierarchy

  GObject
   +----NMObject
         +----NMDevice
               +----NMDeviceVlan

Properties

  "carrier"                  gboolean              : Read
  "hw-address"               gchar*                : Read
  "vlan-id"                  guint                 : Read

Description

Details

NM_DEVICE_VLAN_HW_ADDRESS

#define NM_DEVICE_VLAN_HW_ADDRESS  "hw-address"


NM_DEVICE_VLAN_CARRIER

#define NM_DEVICE_VLAN_CARRIER     "carrier"


NM_DEVICE_VLAN_VLAN_ID

#define NM_DEVICE_VLAN_VLAN_ID     "vlan-id"


NMDeviceVlan

typedef struct _NMDeviceVlan NMDeviceVlan;


nm_device_vlan_new ()

GObject *           nm_device_vlan_new                  (DBusGConnection *connection,
                                                         const char *path);

Creates a new NMDeviceVlan.

connection :

the DBusGConnection

path :

the DBus object path of the device

Returns :

a new device. transfer full.

nm_device_vlan_get_hw_address ()

const char *        nm_device_vlan_get_hw_address       (NMDeviceVlan *device);

Gets the hardware (MAC) address of the NMDeviceVlan

device :

a NMDeviceVlan

Returns :

the hardware address. This is the internal string used by the device, and must not be modified.

nm_device_vlan_get_carrier ()

gboolean            nm_device_vlan_get_carrier          (NMDeviceVlan *device);

Whether the device has carrier.

device :

a NMDeviceVlan

Returns :

TRUE if the device has carrier

nm_device_vlan_get_vlan_id ()

guint               nm_device_vlan_get_vlan_id          (NMDeviceVlan *device);

device :

a NMDeviceVlan

Returns :

the device's VLAN ID

Property Details

The "carrier" property

  "carrier"                  gboolean              : Read

Whether the device has carrier.

Default value: FALSE


The "hw-address" property

  "hw-address"               gchar*                : Read

The hardware (MAC) address of the device.

Default value: NULL


The "vlan-id" property

  "vlan-id"                  guint                 : Read

The device's VLAN ID.

Allowed values: <= 4095

Default value: 0