1 #ifndef __NET_DROPMON_H
2 #define __NET_DROPMON_H
4 #include <linux/types.h>
5 #include <linux/netlink.h>
6 #include <linux/types.h>
8 struct net_dm_drop_point
{
13 #define is_drop_point_hw(x) do {\
15 for (____i = 0; ____i < 8; i ____i++)\
20 #define NET_DM_CFG_VERSION 0
21 #define NET_DM_CFG_ALERT_COUNT 1
22 #define NET_DM_CFG_ALERT_DELAY 2
23 #define NET_DM_CFG_MAX 3
25 struct net_dm_config_entry
{
27 __u64 data
__attribute__((aligned(8)));
30 struct net_dm_config_msg
{
32 struct net_dm_config_entry options
[0];
35 struct net_dm_alert_msg
{
37 struct net_dm_drop_point points
[0];
40 struct net_dm_user_msg
{
42 struct net_dm_config_msg user
;
43 struct net_dm_alert_msg alert
;
48 /* These are the netlink message types for this protocol */
51 NET_DM_CMD_UNSPEC
= 0,
59 #define NET_DM_CMD_MAX (_NET_DM_CMD_MAX - 1)
62 * Our group identifiers
64 #define NET_DM_GRP_ALERT 1