Logo Search packages:      
Sourcecode: libnl version File versions  Download package

void rtnl_qdisc_foreach_cls ( struct rtnl_qdisc *  qdisc,
struct nl_cache *  cache,
void(*)(struct nl_object *, void *)  cb,
void *  arg 

Call a callback for each filter attached to the qdisc

  • 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 689 of file qdisc.c.

References nl_cache_foreach_filter(), rtnl_cls_alloc(), and rtnl_cls_put().

      struct rtnl_cls *filter;

      filter = rtnl_cls_alloc();
      if (!filter)

      rtnl_cls_set_ifindex(filter, qdisc->q_ifindex);
      rtnl_cls_set_parent(filter, qdisc->q_parent);

      nl_cache_foreach_filter(cache, (struct nl_object *) filter, cb, arg);

Generated by  Doxygen 1.6.0   Back to index