summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.h
diff options
context:
space:
mode:
authoranuradhak <anuradhak@cumulusnetworks.com>2016-11-21 19:20:00 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:16 +0100
commit15ad0c71e0e7a58e68852bd749ebcf5cc755aa09 (patch)
tree6b7b42d91a77e4ac2597b5b264bed075c869668a /pimd/pimd.h
parentpimd: Cleanup igmp read socket (diff)
downloadfrr-15ad0c71e0e7a58e68852bd749ebcf5cc755aa09.tar.xz
frr-15ad0c71e0e7a58e68852bd749ebcf5cc755aa09.zip
pim-msdp: CLI and debug cleanup
No functional change. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
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)