Top |
#define | NM_SETTING_TC_CONFIG_SETTING_NAME |
#define | NM_SETTING_TC_CONFIG_QDISCS |
#define | NM_SETTING_TC_CONFIG_TFILTERS |
NMTCQdisc * nm_tc_qdisc_new (const char *kind
,guint32 parent
,GError **error
);
Creates a new NMTCQdisc object.
kind |
name of the queueing discipline |
|
parent |
the parent queueing discipline |
|
error |
location to store error, or |
Since: 1.12
void
nm_tc_qdisc_ref (NMTCQdisc *qdisc
);
Increases the reference count of the object.
Since: 1.12
void
nm_tc_qdisc_unref (NMTCQdisc *qdisc
);
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.12
gboolean nm_tc_qdisc_equal (NMTCQdisc *qdisc
,NMTCQdisc *other
);
Determines if two NMTCQdisc objects contain the same kind, * handle and parent.
Since: 1.12
NMTCQdisc *
nm_tc_qdisc_dup (NMTCQdisc *qdisc
);
Creates a copy of qdisc
Since: 1.12
void nm_tc_qdisc_set_handle (NMTCQdisc *qdisc
,guint32 handle
);
Sets the queueing discipline handle.
Since: 1.12
const char **
nm_tc_qdisc_get_attribute_names (NMTCQdisc *qdisc
);
Gets an array of attribute names defined on qdisc
.
a NULL
-terminated array of attribute names
or NULL
if no attributes are set.
[transfer container]
Since: 1.18
GVariant * nm_tc_qdisc_get_attribute (NMTCQdisc *qdisc
,const char *name
);
Gets the value of the attribute with name name
on qdisc
the value of the attribute with name name
on
qdisc
, or NULL
if qdisc
has no such attribute.
[transfer none]
Since: 1.18
void nm_tc_qdisc_set_attribute (NMTCQdisc *qdisc
,const char *name
,GVariant *value
);
Sets or clears the named attribute on qdisc
to the given value.
qdisc |
the NMTCQdisc |
|
name |
the name of an qdisc attribute |
|
value |
the value. |
[transfer none][allow-none] |
Since: 1.18
NMTCAction * nm_tc_action_new (const char *kind
,GError **error
);
Creates a new NMTCAction object.
Since: 1.12
void
nm_tc_action_ref (NMTCAction *action
);
Increases the reference count of the object.
Since: 1.12
void
nm_tc_action_unref (NMTCAction *action
);
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.12
gboolean nm_tc_action_equal (NMTCAction *action
,NMTCAction *other
);
Determines if two NMTCAction objects contain the same kind, family, handle, parent and info.
Since: 1.12
NMTCAction *
nm_tc_action_dup (NMTCAction *action
);
Creates a copy of action
Since: 1.12
char **
nm_tc_action_get_attribute_names (NMTCAction *action
);
Gets an array of attribute names defined on action
.
Since: 1.12
GVariant * nm_tc_action_get_attribute (NMTCAction *action
,const char *name
);
Gets the value of the attribute with name name
on action
the value of the attribute with name name
on
action
, or NULL
if action
has no such attribute.
[transfer none]
Since: 1.12
void nm_tc_action_set_attribute (NMTCAction *action
,const char *name
,GVariant *value
);
Sets or clears the named attribute on action
to the given value.
action |
the NMTCAction |
|
name |
the name of an action attribute |
|
value |
the value. |
[transfer none][allow-none] |
Since: 1.12
NMTCTfilter * nm_tc_tfilter_new (const char *kind
,guint32 parent
,GError **error
);
Creates a new NMTCTfilter object.
kind |
name of the queueing discipline |
|
parent |
the parent queueing discipline |
|
error |
location to store error, or |
Since: 1.12
void
nm_tc_tfilter_ref (NMTCTfilter *tfilter
);
Increases the reference count of the object.
Since: 1.12
void
nm_tc_tfilter_unref (NMTCTfilter *tfilter
);
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since: 1.12
gboolean nm_tc_tfilter_equal (NMTCTfilter *tfilter
,NMTCTfilter *other
);
Determines if two NMTCTfilter objects contain the same kind, family, handle, parent and info.
Since: 1.12
NMTCTfilter *
nm_tc_tfilter_dup (NMTCTfilter *tfilter
);
Creates a copy of tfilter
Since: 1.12
void nm_tc_tfilter_set_handle (NMTCTfilter *tfilter
,guint32 handle
);
Sets the queueing discipline handle.
Since: 1.12
NMTCAction *
nm_tc_tfilter_get_action (NMTCTfilter *tfilter
);
Since: 1.42, 1.40.4
void nm_tc_tfilter_set_action (NMTCTfilter *tfilter
,NMTCAction *action
);
Sets the action associated with a traffic filter.
Since: 1.42, 1.40.4
NMSetting *
nm_setting_tc_config_new (void
);
Creates a new NMSettingTCConfig object with default values.
Since: 1.12
guint
nm_setting_tc_config_get_num_qdiscs (NMSettingTCConfig *setting
);
Since: 1.12
NMTCQdisc * nm_setting_tc_config_get_qdisc (NMSettingTCConfig *setting
,guint idx
);
Since: 1.12
gboolean nm_setting_tc_config_add_qdisc (NMSettingTCConfig *setting
,NMTCQdisc *qdisc
);
Appends a new qdisc and associated information to the setting. The
given qdisc is duplicated internally and is not changed by this function.
If an identical qdisc (considering attributes as well) already exists, the
qdisc is not added and the function returns FALSE
.
Since: 1.12
void nm_setting_tc_config_remove_qdisc (NMSettingTCConfig *setting
,guint idx
);
Removes the qdisc at index idx
.
Since: 1.12
gboolean nm_setting_tc_config_remove_qdisc_by_value (NMSettingTCConfig *setting
,NMTCQdisc *qdisc
);
Removes the first matching qdisc that matches qdisc
.
Since: 1.12
void
nm_setting_tc_config_clear_qdiscs (NMSettingTCConfig *setting
);
Removes all configured queueing disciplines.
Since: 1.12
guint
nm_setting_tc_config_get_num_tfilters (NMSettingTCConfig *setting
);
Since: 1.12
NMTCTfilter * nm_setting_tc_config_get_tfilter (NMSettingTCConfig *setting
,guint idx
);
Since: 1.12
gboolean nm_setting_tc_config_add_tfilter (NMSettingTCConfig *setting
,NMTCTfilter *tfilter
);
Appends a new tfilter and associated information to the setting. The
given tfilter is duplicated internally and is not changed by this function.
If an identical tfilter (considering attributes as well) already exists, the
tfilter is not added and the function returns FALSE
.
Since: 1.12
void nm_setting_tc_config_remove_tfilter (NMSettingTCConfig *setting
,guint idx
);
Removes the tfilter at index idx
.
Since: 1.12
gboolean nm_setting_tc_config_remove_tfilter_by_value (NMSettingTCConfig *setting
,NMTCTfilter *tfilter
);
Removes the first matching tfilter that matches tfilter
.
Since: 1.12
void
nm_setting_tc_config_clear_tfilters (NMSettingTCConfig *setting
);
Removes all configured queueing disciplines.
Since: 1.12