2 * Lightweight Autonomic Network Architecture
4 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 * Swiss federal institute of technology (ETH Zurich)
12 #include <linux/types.h>
15 #include "xt_fblock.h"
17 #define NETLINK_USERCTL 24
20 USERCTLGRP_NONE
= VLINKNLGRP_MAX
, /* Reserved */
21 #define USERCTLGRP_NONE USERCTLGRP_NONE
23 #define USERCTLGRP_CONF USERCTLGRP_CONF
27 #define USERCTLGRP_MAX (__USERCTLGRP_MAX - 1)
28 #define USERCTL_BUF_LEN 1500
30 #define NETLINK_USERCTL_CMD_ADD 1
31 #define NETLINK_USERCTL_CMD_SET 2
32 #define NETLINK_USERCTL_CMD_RM 3
33 #define NETLINK_USERCTL_CMD_BIND 4
34 #define NETLINK_USERCTL_CMD_UNBIND 5
35 #define NETLINK_USERCTL_CMD_REPLACE 6
36 #define NETLINK_USERCTL_CMD_SUBSCRIBE 7
37 #define NETLINK_USERCTL_CMD_UNSUBSCRIBE 8
39 struct lananlmsg_add
{
48 struct lananlmsg_set
{
50 /* 0-terminated string, e.g. "myip=192.168.1.111" */
51 char option
[USERCTL_BUF_LEN
- FBNAMSIZ
];
54 struct lananlmsg_tuple
{
59 struct lananlmsg_replace
{
65 extern int init_userctl_system(void);
66 extern void cleanup_userctl_system(void);
70 uint8_t buff
[USERCTL_BUF_LEN
];
73 #endif /* XT_USER_H */