Top | ![]() |
![]() |
![]() |
![]() |
GQuark | nm_setting_bond_error_quark () |
NMSetting * | nm_setting_bond_new () |
const char * | nm_setting_bond_get_interface_name () |
guint32 | nm_setting_bond_get_num_options () |
gboolean | nm_setting_bond_get_option () |
const char * | nm_setting_bond_get_option_by_name () |
gboolean | nm_setting_bond_add_option () |
gboolean | nm_setting_bond_remove_option () |
gboolean | nm_setting_bond_validate_option () |
const char ** | nm_setting_bond_get_valid_options () |
const char * | nm_setting_bond_get_option_default () |
gchar * | interface-name | Read / Write |
GHashTable_gchararray+gchararray_* | options | Read / Write |
#define | NM_SETTING_BOND_SETTING_NAME |
enum | NMSettingBondError |
#define | NM_SETTING_BOND_ERROR |
#define | NM_SETTING_BOND_INTERFACE_NAME |
#define | NM_SETTING_BOND_OPTIONS |
#define | NM_SETTING_BOND_OPTION_MODE |
#define | NM_SETTING_BOND_OPTION_MIIMON |
#define | NM_SETTING_BOND_OPTION_DOWNDELAY |
#define | NM_SETTING_BOND_OPTION_UPDELAY |
#define | NM_SETTING_BOND_OPTION_ARP_INTERVAL |
#define | NM_SETTING_BOND_OPTION_ARP_IP_TARGET |
#define | NM_SETTING_BOND_OPTION_ARP_VALIDATE |
#define | NM_SETTING_BOND_OPTION_PRIMARY |
#define | NM_SETTING_BOND_OPTION_PRIMARY_RESELECT |
#define | NM_SETTING_BOND_OPTION_FAIL_OVER_MAC |
#define | NM_SETTING_BOND_OPTION_USE_CARRIER |
#define | NM_SETTING_BOND_OPTION_AD_SELECT |
#define | NM_SETTING_BOND_OPTION_XMIT_HASH_POLICY |
#define | NM_SETTING_BOND_OPTION_RESEND_IGMP |
#define | NM_SETTING_BOND_OPTION_LACP_RATE |
The NMSettingBond object is a NMSetting subclass that describes properties necessary for bond connections.
GQuark
nm_setting_bond_error_quark (void
);
Registers an error quark for NMSettingBond if necessary.
NMSetting *
nm_setting_bond_new (void
);
Creates a new NMSettingBond object with default values.
const char *
nm_setting_bond_get_interface_name (NMSettingBond *setting
);
guint32
nm_setting_bond_get_num_options (NMSettingBond *setting
);
Returns the number of options that should be set for this bond when it
is activated. This can be used to retrieve each option individually
using nm_setting_bond_get_option()
.
gboolean nm_setting_bond_get_option (NMSettingBond *setting
,guint32 idx
,const char **out_name
,const char **out_value
);
Given an index, return the value of the bonding option at that index. Indexes
are *not* guaranteed to be static across modifications to options done by
nm_setting_bond_add_option()
and nm_setting_bond_remove_option()
,
and should not be used to refer to options except for short periods of time
such as during option iteration.
setting |
the NMSettingBond |
|
idx |
index of the desired option, from 0 to
|
|
out_name |
on return, the name of the bonding option; this value is owned by the setting and should not be modified. |
[out] |
out_value |
on return, the value of the name of the bonding option; this value is owned by the setting and should not be modified. |
[out] |
const char * nm_setting_bond_get_option_by_name (NMSettingBond *setting
,const char *name
);
Returns the value associated with the bonding option specified by
name
, if it exists.
the value, or NULL
if the key/value pair was never added to the
setting; the value is owned by the setting and must not be modified
gboolean nm_setting_bond_add_option (NMSettingBond *setting
,const char *name
,const char *value
);
Add an option to the table. The option is compared to an internal list of allowed options. Option names may contain only alphanumeric characters (ie [a-zA-Z0-9]). Adding a new name replaces any existing name/value pair that may already exist.
The order of how to set several options is relevant because there are options that conflict with each other.
gboolean nm_setting_bond_remove_option (NMSettingBond *setting
,const char *name
);
Remove the bonding option referenced by name
from the internal option
list.
gboolean nm_setting_bond_validate_option (const char *name
,const char *value
);
Checks whether name
is a valid bond option and value
is a valid value for
the name
. If value
is NULL
, the function only validates the option name.
TRUE
, if the value
is valid for the given name.
If the name
is not a valid option, FALSE
will be returned.
Since: 0.9.10
const char **
nm_setting_bond_get_valid_options (NMSettingBond *setting
);
Returns a list of valid bond options.
const char * nm_setting_bond_get_option_default (NMSettingBond *setting
,const char *name
);
#define NM_SETTING_BOND_OPTION_PRIMARY_RESELECT "primary_reselect"
#define NM_SETTING_BOND_OPTION_XMIT_HASH_POLICY "xmit_hash_policy"
“interface-name”
property“interface-name” gchar *
The name of the virtual in-kernel bonding network interface
Flags: Read / Write
Default value: NULL