netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
genetlink.h File Reference
#include <linux/netlink.h>
Include dependency graph for genetlink.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  genlmsghdr
 

Macros

#define GENL_NAMSIZ   16 /* length of family name */
 
#define GENL_MIN_ID   NLMSG_MIN_TYPE
 
#define GENL_MAX_ID   1023
 
#define GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct genlmsghdr))
 
#define GENL_ADMIN_PERM   0x01
 
#define GENL_CMD_CAP_DO   0x02
 
#define GENL_CMD_CAP_DUMP   0x04
 
#define GENL_CMD_CAP_HASPOL   0x08
 
#define GENL_ID_GENERATE   0
 
#define GENL_ID_CTRL   NLMSG_MIN_TYPE
 
#define CTRL_CMD_MAX   (__CTRL_CMD_MAX - 1)
 
#define CTRL_ATTR_MAX   (__CTRL_ATTR_MAX - 1)
 
#define CTRL_ATTR_OP_MAX   (__CTRL_ATTR_OP_MAX - 1)
 

Enumerations

enum  {
  CTRL_CMD_UNSPEC,
  CTRL_CMD_NEWFAMILY,
  CTRL_CMD_DELFAMILY,
  CTRL_CMD_GETFAMILY,
  CTRL_CMD_NEWOPS,
  CTRL_CMD_DELOPS,
  CTRL_CMD_GETOPS,
  __CTRL_CMD_MAX
}
 
enum  {
  CTRL_ATTR_UNSPEC,
  CTRL_ATTR_FAMILY_ID,
  CTRL_ATTR_FAMILY_NAME,
  CTRL_ATTR_VERSION,
  CTRL_ATTR_HDRSIZE,
  CTRL_ATTR_MAXATTR,
  CTRL_ATTR_OPS,
  __CTRL_ATTR_MAX
}
 
enum  {
  CTRL_ATTR_OP_UNSPEC,
  CTRL_ATTR_OP_ID,
  CTRL_ATTR_OP_FLAGS,
  __CTRL_ATTR_OP_MAX
}
 

Macro Definition Documentation

#define CTRL_ATTR_MAX   (__CTRL_ATTR_MAX - 1)
#define CTRL_ATTR_OP_MAX   (__CTRL_ATTR_OP_MAX - 1)
#define CTRL_CMD_MAX   (__CTRL_CMD_MAX - 1)
#define GENL_ADMIN_PERM   0x01
#define GENL_CMD_CAP_DO   0x02
#define GENL_CMD_CAP_DUMP   0x04
#define GENL_CMD_CAP_HASPOL   0x08
#define GENL_HDRLEN   NLMSG_ALIGN(sizeof(struct genlmsghdr))
#define GENL_ID_CTRL   NLMSG_MIN_TYPE
#define GENL_ID_GENERATE   0

Referenced by genl_family_get_id().

#define GENL_MAX_ID   1023
#define GENL_MIN_ID   NLMSG_MIN_TYPE
#define GENL_NAMSIZ   16 /* length of family name */

Referenced by genl_family_set_name().

Enumeration Type Documentation

anonymous enum
Enumerator
CTRL_CMD_UNSPEC 
CTRL_CMD_NEWFAMILY 
CTRL_CMD_DELFAMILY 
CTRL_CMD_GETFAMILY 
CTRL_CMD_NEWOPS 
CTRL_CMD_DELOPS 
CTRL_CMD_GETOPS 
__CTRL_CMD_MAX 
anonymous enum
Enumerator
CTRL_ATTR_UNSPEC 
CTRL_ATTR_FAMILY_ID 
CTRL_ATTR_FAMILY_NAME 
CTRL_ATTR_VERSION 
CTRL_ATTR_HDRSIZE 
CTRL_ATTR_MAXATTR 
CTRL_ATTR_OPS 
__CTRL_ATTR_MAX 
anonymous enum
Enumerator
CTRL_ATTR_OP_UNSPEC 
CTRL_ATTR_OP_ID 
CTRL_ATTR_OP_FLAGS 
__CTRL_ATTR_OP_MAX