summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.h
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pimd.h')
-rw-r--r--pimd/pimd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pimd.h b/pimd/pimd.h
index 54cecd19d..cb0165c22 100644
--- a/pimd/pimd.h
+++ b/pimd/pimd.h
@@ -52,6 +52,8 @@
#define PIM_INADDR_IS_ANY(addr) (addr).s_addr == PIM_NET_INADDR_ANY
#define PIM_INADDR_ISNOT_ANY(addr) ((addr).s_addr != PIM_NET_INADDR_ANY) /* struct in_addr addr */
+#define max(x,y) ((x) > (y) ? (x) : (y))
+
#define PIM_MASK_PIM_EVENTS (1 << 0)
#define PIM_MASK_PIM_EVENTS_DETAIL (1 << 1)
#define PIM_MASK_PIM_PACKETS (1 << 2)