1 #ifndef __NET_DROPMON_H
2 #define __NET_DROPMON_H
4 #include <linux/netlink.h>
5 #include <linux/types.h>
7 struct net_dm_drop_point {
12 #define is_drop_point_hw(x) do {\
14 for (____i = 0; ____i < 8; i ____i++)\
19 #define NET_DM_CFG_VERSION 0
20 #define NET_DM_CFG_ALERT_COUNT 1
21 #define NET_DM_CFG_ALERT_DELAY 2
22 #define NET_DM_CFG_MAX 3
24 struct net_dm_config_entry {
26 __u64 data __attribute__((aligned(8)));
29 struct net_dm_config_msg {
31 struct net_dm_config_entry options[0];
34 struct net_dm_alert_msg {
36 struct net_dm_drop_point points[0];
39 struct net_dm_user_msg {
41 struct net_dm_config_msg user;
42 struct net_dm_alert_msg alert;
47 /* These are the netlink message types for this protocol */
50 NET_DM_CMD_UNSPEC = 0,
58 #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1)
61 * Our group identifiers
63 #define NET_DM_GRP_ALERT 1