summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msdp_packet.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-11-11 15:39:52 +0100
committerDonald Sharp <sharpd@nvidia.com>2021-11-11 15:39:52 +0100
commit7a8ce9d56dec3844031563c3c55bed8eb3b692d5 (patch)
tree540ad9555825587c56143bcfc1d1172e4977a00c /pimd/pim_msdp_packet.h
parentMerge pull request #10006 from chiragshah6/evpn_dev (diff)
downloadfrr-7a8ce9d56dec3844031563c3c55bed8eb3b692d5.tar.xz
frr-7a8ce9d56dec3844031563c3c55bed8eb3b692d5.zip
*: use compiler.h MIN/MAX macros instead of everyone having one
We had various forms of min/max macros across multiple daemons all of which duplicated what we have in compiler.h. Convert everyone to use the `correct` ones Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_msdp_packet.h')
-rw-r--r--pimd/pim_msdp_packet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_msdp_packet.h b/pimd/pim_msdp_packet.h
index f5af8d114..10b7ca419 100644
--- a/pimd/pim_msdp_packet.h
+++ b/pimd/pim_msdp_packet.h
@@ -58,7 +58,8 @@
* fragmentation */
#define PIM_MSDP_SA_MAX_ENTRY_CNT 120
-#define PIM_MSDP_MAX_PACKET_SIZE max(PIM_MSDP_SA_TLV_MAX_SIZE, PIM_MSDP_KA_TLV_MAX_SIZE)
+#define PIM_MSDP_MAX_PACKET_SIZE \
+ MAX(PIM_MSDP_SA_TLV_MAX_SIZE, PIM_MSDP_KA_TLV_MAX_SIZE)
#define PIM_MSDP_PKT_TYPE_STRLEN 16