|
libnl 1.1
|
Data Structures | |
| struct | rtnl_cls_ops |
| Classifier operations. More... | |
Modules | |
| Firewall Classifier | |
| Universal 32-bit Classifier | |
Classifier Module API | |
| int | rtnl_cls_register (struct rtnl_cls_ops *cops) |
| Register a classifier module. | |
| int | rtnl_cls_unregister (struct rtnl_cls_ops *cops) |
| Unregister a classifier module. | |
| struct rtnl_cls_ops * | __rtnl_cls_lookup_ops (const char *kind) |
| struct rtnl_cls_ops * | rtnl_cls_lookup_ops (struct rtnl_cls *cls) |
| Lookup classifier operations for a classifier object. | |
| int rtnl_cls_register | ( | struct rtnl_cls_ops * | cops | ) |
| 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.
| int rtnl_cls_unregister | ( | struct rtnl_cls_ops * | cops | ) |
| cops | classifier module operations |
Definition at line 59 of file cls_api.c.
References rtnl_cls_ops::co_kind, and rtnl_cls_ops::co_next.
{
struct rtnl_cls_ops *o, **op;
for (op = &cls_ops_list; (o = *op) != NULL; op = &o->co_next)
if (!strcasecmp(cops->co_kind, o->co_kind))
break;
if (!o)
return nl_errno(ENOENT);
*op = cops->co_next;
return 0;
}
| struct rtnl_cls_ops* rtnl_cls_lookup_ops | ( | struct rtnl_cls * | cls | ) | [read] |
1.7.3