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

int rtnl_qdisc_register ( struct rtnl_qdisc_ops qops  ) 

Register a qdisc module

  • qops qdisc module operations

Definition at line 40 of file qdisc_api.c.

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

      struct rtnl_qdisc_ops *o, **op;

      if (!qops->qo_kind[0])

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

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

      return 0;

Generated by  Doxygen 1.6.0   Back to index