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

classifier-modules.h

/*
 * netlink/route/classifier-modules.h   Classifier Module API
 *
 *          This program is free software; you can redistribute it and/or
 *          modify it under the terms of the GNU General Public License
 *          as published by the Free Software Foundation; either version
 *          2 of the License, or (at your option) any later version.
 *
 * Copyright (c) 2003-2005 Thomas Graf <tgraf@suug.ch>
 */

#ifndef NETLINK_CLASS_MODULES_H_
#define NETLINK_CLASS_MODULES_H_

#include <netlink/netlink.h>

/**
 * Classifier operations
 * @ingroup cls
 */
00021 struct rtnl_cls_ops
{
      /**
       * Kind/Name of classifier
       */
00026       char co_kind[32];

      /**
       * Dump callbacks
       */
00031       int (*co_dump[NL_DUMP_MAX+1])(struct rtnl_cls *,
                              struct nl_dump_params *, int);
      /**
       * Must return the contents supposed to be in TCA_OPTIONS
       */
00036       struct nl_msg *(*co_get_opts)(struct rtnl_cls *);

      /**
       * TCA_OPTIONS message parser
       */
00041       int (*co_msg_parser)(struct rtnl_cls *);

      /**
       * Called before a class object gets destroyed
       */
00046       void (*co_free_data)(struct rtnl_cls *);

      /**
       * INTERNAL (Do not use)
       */
00051       struct rtnl_cls_ops *co_next;
};

extern int rtnl_cls_register(struct rtnl_cls_ops *);
extern int rtnl_cls_unregister(struct rtnl_cls_ops *);

#endif

Generated by  Doxygen 1.6.0   Back to index