Logo Search packages:      
Sourcecode: libnl version File versions

int rtnl_cls_register ( struct rtnl_cls_ops cops  ) 

Register a classifier module

  • cops classifier module operations

Definition at line 38 of file cls_api.c.

References rtnl_cls_ops::co_kind, and rtnl_cls_ops::co_next.

{
      struct rtnl_cls_ops *o, **op;

      if (!cops->co_kind)
            BUG();

      for (op = &cls_ops_list; (o = *op) != NULL; op = &o->co_next)
            if (!strcasecmp(cops->co_kind, o->co_kind))
                  return nl_errno(EEXIST);

      cops->co_next = NULL;
      *op = cops;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index