summaryrefslogtreecommitdiff
path: root/include/uapi/linux/packet_diag.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/packet_diag.h')
-rw-r--r--include/uapi/linux/packet_diag.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/packet_diag.h b/include/uapi/linux/packet_diag.h
index 93f5fa94a431..afafd703ad92 100644
--- a/include/uapi/linux/packet_diag.h
+++ b/include/uapi/linux/packet_diag.h
@@ -33,9 +33,11 @@ enum {
PACKET_DIAG_TX_RING,
PACKET_DIAG_FANOUT,
- PACKET_DIAG_MAX,
+ __PACKET_DIAG_MAX,
};
+#define PACKET_DIAG_MAX (__PACKET_DIAG_MAX - 1)
+
struct packet_diag_info {
__u32 pdi_index;
__u32 pdi_version;