1 #ifndef __NET_DROPMON_H
2 #define __NET_DROPMON_H
4 #include <linux/types.h>
5 #include <linux/netlink.h>
7 struct net_dm_drop_point {
12 #define NET_DM_CFG_VERSION 0
13 #define NET_DM_CFG_ALERT_COUNT 1
14 #define NET_DM_CFG_ALERT_DELAY 2
15 #define NET_DM_CFG_MAX 3
17 struct net_dm_config_entry {
19 __u64 data __attribute__((aligned(8)));
22 struct net_dm_config_msg {
24 struct net_dm_config_entry options[0];
27 struct net_dm_alert_msg {
29 struct net_dm_drop_point points[0];
32 struct net_dm_user_msg {
34 struct net_dm_config_msg user;
35 struct net_dm_alert_msg alert;
40 /* These are the netlink message types for this protocol */
43 NET_DM_CMD_UNSPEC = 0,
51 #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1)
54 * Our group identifiers
56 #define NET_DM_GRP_ALERT 1