diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-11-11 15:39:52 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-11-11 15:39:52 +0100 |
commit | 7a8ce9d56dec3844031563c3c55bed8eb3b692d5 (patch) | |
tree | 540ad9555825587c56143bcfc1d1172e4977a00c /pimd/pim_msdp_packet.h | |
parent | Merge pull request #10006 from chiragshah6/evpn_dev (diff) | |
download | frr-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.h | 3 |
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 |