libnl  3.2.24-rc1
Differentiated Services Marker (DSMARK)

Class Attribute Access

int rtnl_class_dsmark_set_bitmask (struct rtnl_class *class, uint8_t mask)
 Set bitmask of DSMARK class. More...
 
int rtnl_class_dsmark_get_bitmask (struct rtnl_class *class)
 Get bitmask of DSMARK class. More...
 
int rtnl_class_dsmark_set_value (struct rtnl_class *class, uint8_t value)
 Set value of DSMARK class. More...
 
int rtnl_class_dsmark_get_value (struct rtnl_class *class)
 Get value of DSMARK class. More...
 

Qdisc Attribute Access

int rtnl_qdisc_dsmark_set_indices (struct rtnl_qdisc *qdisc, uint16_t indices)
 Set indices of DSMARK qdisc. More...
 
int rtnl_qdisc_dsmark_get_indices (struct rtnl_qdisc *qdisc)
 Get indices of DSMARK qdisc. More...
 
int rtnl_qdisc_dsmark_set_default_index (struct rtnl_qdisc *qdisc, uint16_t default_index)
 Set default index of DSMARK qdisc. More...
 
int rtnl_qdisc_dsmark_get_default_index (struct rtnl_qdisc *qdisc)
 Get default index of DSMARK qdisc. More...
 
int rtnl_qdisc_dsmark_set_set_tc_index (struct rtnl_qdisc *qdisc, int flag)
 Set set-tc-index flag of DSMARK qdisc. More...
 
int rtnl_qdisc_dsmark_get_set_tc_index (struct rtnl_qdisc *qdisc)
 Get set-tc-index flag of DSMARK qdisc. More...
 

Detailed Description

Function Documentation

int rtnl_class_dsmark_set_bitmask ( struct rtnl_class *  class,
uint8_t  mask 
)

Set bitmask of DSMARK class.

Parameters
classDSMARK class to be modified.
maskNew bitmask.
Returns
0 on success or a negative error code.

Definition at line 191 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_class_dsmark_get_bitmask ( struct rtnl_class *  class)

Get bitmask of DSMARK class.

Parameters
classDSMARK class.
Returns
Bitmask or a negative error code.

Definition at line 209 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_class_dsmark_set_value ( struct rtnl_class *  class,
uint8_t  value 
)

Set value of DSMARK class.

Parameters
classDSMARK class to be modified.
valueNew value.
Returns
0 on success or a negative errror code.

Definition at line 228 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_class_dsmark_get_value ( struct rtnl_class *  class)

Get value of DSMARK class.

Parameters
classDSMARK class.
Returns
Value or a negative error code.

Definition at line 246 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_set_indices ( struct rtnl_qdisc *  qdisc,
uint16_t  indices 
)

Set indices of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc to be modified.
indicesNew indices.

Definition at line 271 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_get_indices ( struct rtnl_qdisc *  qdisc)

Get indices of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc.
Returns
Indices or a negative error code.

Definition at line 289 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_set_default_index ( struct rtnl_qdisc *  qdisc,
uint16_t  default_index 
)

Set default index of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc to be modified.
default_indexNew default index.
Returns
0 on success or a negative error code.

Definition at line 308 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_get_default_index ( struct rtnl_qdisc *  qdisc)

Get default index of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc.
Returns
Default index or a negative error code.

Definition at line 327 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_set_set_tc_index ( struct rtnl_qdisc *  qdisc,
int  flag 
)

Set set-tc-index flag of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc to be modified.
flagFlag indicating whether to enable or disable.
Returns
0 on success or a negative error code.

Definition at line 346 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_qdisc_dsmark_get_set_tc_index ( struct rtnl_qdisc *  qdisc)

Get set-tc-index flag of DSMARK qdisc.

Parameters
qdiscDSMARK qdisc to be modified.
Returns
1 or 0 to indicate wehther the flag is enabled or a negative error code.

Definition at line 365 of file dsmark.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function: