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

int rtnl_qdisc_register ( struct rtnl_qdisc_ops ops  ) 

Register a qdisc module

  • ops qdisc module operations

Definition at line 130 of file qdisc.c.

References rtnl_qdisc_ops::qo_kind, and rtnl_qdisc_ops::qo_next.

      struct rtnl_qdisc_ops *o, **op;

      if (!ops->qo_kind[0])

      for (op = &qdisc_ops_list; (o = *op) != NULL; op = &o->qo_next)
            if (!strcasecmp(ops->qo_kind, o->qo_kind))
                  return nl_errno(EEXIST);

      ops->qo_next = NULL;
      *op = ops;

      return 0;

Generated by  Doxygen 1.6.0   Back to index