1 #ifndef __NET_DROPMON_H
2 #define __NET_DROPMON_H
4 #include <linux/netlink.h>
6 struct net_dm_drop_point
{
11 #define NET_DM_CFG_VERSION 0
12 #define NET_DM_CFG_ALERT_COUNT 1
13 #define NET_DM_CFG_ALERT_DELAY 2
14 #define NET_DM_CFG_MAX 3
16 struct net_dm_config_entry
{
18 __u64 data
__attribute__((aligned(8)));
21 struct net_dm_config_msg
{
23 struct net_dm_config_entry options
[0];
26 struct net_dm_alert_msg
{
28 struct net_dm_drop_point points
[0];
31 struct net_dm_user_msg
{
33 struct net_dm_config_msg user
;
34 struct net_dm_alert_msg alert
;
39 /* These are the netlink message types for this protocol */
42 NET_DM_CMD_UNSPEC
= 0,
50 #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1)
53 * Our group identifiers
55 #define NET_DM_GRP_ALERT 1