|
libnl 2.0
|
Variables | |
| struct nl_object_ops | qdisc_obj_ops |
Allocation/Freeing | |
| struct rtnl_qdisc * | rtnl_qdisc_alloc (void) |
| void | rtnl_qdisc_put (struct rtnl_qdisc *qdisc) |
Iterators | |
| void | rtnl_qdisc_foreach_child (struct rtnl_qdisc *qdisc, struct nl_cache *cache, void(*cb)(struct nl_object *, void *), void *arg) |
| Call a callback for each child class of a qdisc. | |
| void | rtnl_qdisc_foreach_cls (struct rtnl_qdisc *qdisc, struct nl_cache *cache, void(*cb)(struct nl_object *, void *), void *arg) |
| Call a callback for each filter attached to the qdisc. | |
Attributes | |
| void | rtnl_qdisc_set_ifindex (struct rtnl_qdisc *qdisc, int ifindex) |
| int | rtnl_qdisc_get_ifindex (struct rtnl_qdisc *qdisc) |
| void | rtnl_qdisc_set_handle (struct rtnl_qdisc *qdisc, uint32_t handle) |
| uint32_t | rtnl_qdisc_get_handle (struct rtnl_qdisc *qdisc) |
| void | rtnl_qdisc_set_parent (struct rtnl_qdisc *qdisc, uint32_t parent) |
| uint32_t | rtnl_qdisc_get_parent (struct rtnl_qdisc *qdisc) |
| void | rtnl_qdisc_set_kind (struct rtnl_qdisc *qdisc, const char *name) |
| char * | rtnl_qdisc_get_kind (struct rtnl_qdisc *qdisc) |
| uint64_t | rtnl_qdisc_get_stat (struct rtnl_qdisc *qdisc, enum rtnl_tc_stats_id id) |
Qdisc Specific Options | |
| struct nl_msg * | rtnl_qdisc_get_opts (struct rtnl_qdisc *qdisc) |
| Return qdisc specific options for use in TCA_OPTIONS. | |
| void rtnl_qdisc_foreach_child | ( | struct rtnl_qdisc * | qdisc, |
| struct nl_cache * | cache, | ||
| void(*)(struct nl_object *, void *) | cb, | ||
| void * | arg | ||
| ) |
| qdisc | the parent qdisc |
| cache | a class cache including all classes of the interface the specified qdisc is attached to |
| cb | callback function |
| arg | argument to be passed to callback function |
Definition at line 134 of file qdisc_obj.c.
References nl_cache_foreach_filter().
| void rtnl_qdisc_foreach_cls | ( | struct rtnl_qdisc * | qdisc, |
| struct nl_cache * | cache, | ||
| void(*)(struct nl_object *, void *) | cb, | ||
| void * | arg | ||
| ) |
| qdisc | the parent qdisc |
| cache | a filter cache including at least all the filters attached to the specified qdisc |
| cb | callback function |
| arg | argument to be passed to callback function |
Definition at line 160 of file qdisc_obj.c.
References nl_cache_foreach_filter().
| struct nl_msg* rtnl_qdisc_get_opts | ( | struct rtnl_qdisc * | qdisc | ) | [read] |
| qdisc | qdisc carrying the optiosn |
Definition at line 243 of file qdisc_obj.c.
References rtnl_qdisc_ops::qo_get_opts.
| struct nl_object_ops qdisc_obj_ops |
{
.oo_name = "route/qdisc",
.oo_size = sizeof(struct rtnl_qdisc),
.oo_free_data = qdisc_free_data,
.oo_clone = qdisc_clone,
.oo_dump = {
[NL_DUMP_LINE] = qdisc_dump_line,
[NL_DUMP_DETAILS] = qdisc_dump_details,
[NL_DUMP_STATS] = qdisc_dump_stats,
},
.oo_compare = tca_compare,
.oo_id_attrs = (TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE),
}
Definition at line 256 of file qdisc_obj.c.
1.7.3