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
36 struct lananlmsg_add
{
45 struct lananlmsg_set
{
47 /* 0-terminated string, e.g. "myip=192.168.1.111" */
48 char option
[USERCTL_BUF_LEN
- FBNAMSIZ
];
51 struct lananlmsg_bind
{
56 struct lananlmsg_unbind
{
61 struct lananlmsg_replace
{
67 struct lananlmsg_subscribe
{
72 struct lananlmsg_unsubscribe
{
77 extern int init_userctl_system(void);
78 extern void cleanup_userctl_system(void);
82 uint8_t buff
[USERCTL_BUF_LEN
];
85 #endif /* XT_USER_H */