NMSettingTCConfig

NMSettingTCConfig — Describes connection properties for the Linux Traffic Control

Functions

NMTCQdisc * nm_tc_qdisc_new ()
void nm_tc_qdisc_ref ()
void nm_tc_qdisc_unref ()
gboolean nm_tc_qdisc_equal ()
NMTCQdisc * nm_tc_qdisc_dup ()
const char * nm_tc_qdisc_get_kind ()
guint32 nm_tc_qdisc_get_handle ()
void nm_tc_qdisc_set_handle ()
guint32 nm_tc_qdisc_get_parent ()
const char ** nm_tc_qdisc_get_attribute_names ()
GVariant * nm_tc_qdisc_get_attribute ()
void nm_tc_qdisc_set_attribute ()
NMTCAction * nm_tc_action_new ()
void nm_tc_action_ref ()
void nm_tc_action_unref ()
gboolean nm_tc_action_equal ()
NMTCAction * nm_tc_action_dup ()
const char * nm_tc_action_get_kind ()
char ** nm_tc_action_get_attribute_names ()
GVariant * nm_tc_action_get_attribute ()
void nm_tc_action_set_attribute ()
NMTCTfilter * nm_tc_tfilter_new ()
void nm_tc_tfilter_ref ()
void nm_tc_tfilter_unref ()
gboolean nm_tc_tfilter_equal ()
NMTCTfilter * nm_tc_tfilter_dup ()
const char * nm_tc_tfilter_get_kind ()
guint32 nm_tc_tfilter_get_handle ()
void nm_tc_tfilter_set_handle ()
guint32 nm_tc_tfilter_get_parent ()
NMTCAction * nm_tc_tfilter_get_action ()
void nm_tc_tfilter_set_action ()
NMSetting * nm_setting_tc_config_new ()
guint nm_setting_tc_config_get_num_qdiscs ()
NMTCQdisc * nm_setting_tc_config_get_qdisc ()
gboolean nm_setting_tc_config_add_qdisc ()
void nm_setting_tc_config_remove_qdisc ()
gboolean nm_setting_tc_config_remove_qdisc_by_value ()
void nm_setting_tc_config_clear_qdiscs ()
guint nm_setting_tc_config_get_num_tfilters ()
NMTCTfilter * nm_setting_tc_config_get_tfilter ()
gboolean nm_setting_tc_config_add_tfilter ()
void nm_setting_tc_config_remove_tfilter ()
gboolean nm_setting_tc_config_remove_tfilter_by_value ()
void nm_setting_tc_config_clear_tfilters ()

Types and Values

Object Hierarchy

    GBoxed
    ├── NMTCAction
    ├── NMTCQdisc
    ╰── NMTCTfilter

Includes

#include <nm-setting-tc-config.h>

Description

Functions

nm_tc_qdisc_new ()

NMTCQdisc *
nm_tc_qdisc_new (const char *kind,
                 guint32 parent,
                 GError **error);

Creates a new NMTCQdisc object.

Parameters

kind

name of the queueing discipline

 

parent

the parent queueing discipline

 

error

location to store error, or NULL

 

Returns

the new NMTCQdisc object, or NULL on error.

[transfer full]

Since: 1.12


nm_tc_qdisc_ref ()

void
nm_tc_qdisc_ref (NMTCQdisc *qdisc);

Increases the reference count of the object.

Parameters

qdisc

the NMTCQdisc

 

Since: 1.12


nm_tc_qdisc_unref ()

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.

Parameters

qdisc

the NMTCQdisc

 

Since: 1.12


nm_tc_qdisc_equal ()

gboolean
nm_tc_qdisc_equal (NMTCQdisc *qdisc,
                   NMTCQdisc *other);

Determines if two NMTCQdisc objects contain the same kind, * handle and parent.

Parameters

qdisc

the NMTCQdisc

 

other

the NMTCQdisc to compare qdisc to.

 

Returns

TRUE if the objects contain the same values, FALSE if they do not.

Since: 1.12


nm_tc_qdisc_dup ()

NMTCQdisc *
nm_tc_qdisc_dup (NMTCQdisc *qdisc);

Creates a copy of qdisc

Parameters

qdisc

the NMTCQdisc

 

Returns

a copy of qdisc .

[transfer full]

Since: 1.12


nm_tc_qdisc_get_kind ()

const char *
nm_tc_qdisc_get_kind (NMTCQdisc *qdisc);

Parameters

qdisc

the NMTCQdisc

 

Since: 1.12


nm_tc_qdisc_get_handle ()

guint32
nm_tc_qdisc_get_handle (NMTCQdisc *qdisc);

Parameters

qdisc

the NMTCQdisc

 

Returns

the queueing discipline handle

Since: 1.12


nm_tc_qdisc_set_handle ()

void
nm_tc_qdisc_set_handle (NMTCQdisc *qdisc,
                        guint32 handle);

Sets the queueing discipline handle.

Parameters

qdisc

the NMTCQdisc

 

handle

the queueing discipline handle

 

Since: 1.12


nm_tc_qdisc_get_parent ()

guint32
nm_tc_qdisc_get_parent (NMTCQdisc *qdisc);

Parameters

qdisc

the NMTCQdisc

 

Returns

the parent class

Since: 1.12


nm_tc_qdisc_get_attribute_names ()

const char **
nm_tc_qdisc_get_attribute_names (NMTCQdisc *qdisc);

Gets an array of attribute names defined on qdisc .

Parameters

qdisc

the NMTCQdisc

 

Returns

a NULL-terminated array of attribute names or NULL if no attributes are set.

[transfer container]

Since: 1.18


nm_tc_qdisc_get_attribute ()

GVariant *
nm_tc_qdisc_get_attribute (NMTCQdisc *qdisc,
                           const char *name);

Gets the value of the attribute with name name on qdisc

Parameters