From 30e24fe92aacc0b9111b109551b7419bcd5fa698 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 25 Apr 2019 14:41:44 -0300 Subject: [PATCH] bfdd: fix UDP source port range RFC 5881 Section 4 tells us that the BFD source port must be between 49152 and 65535 inclusive. Spotted by Lucian Cristian. Signed-off-by: Rafael Zalamena (cherry picked from commit 545d3f704699ac8a7f6600f0ecb031c68c2c13e8) --- bfdd/bfd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfdd/bfd.h b/bfdd/bfd.h index 3a58a8d53c..09703338dc 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -315,8 +315,8 @@ struct bfd_iface { #define BFD_PKT_INFO_VAL 1 #define BFD_IPV6_PKT_INFO_VAL 1 #define BFD_IPV6_ONLY_VAL 1 -#define BFD_SRCPORTINIT 49142 -#define BFD_SRCPORTMAX 65536 +#define BFD_SRCPORTINIT 49152 +#define BFD_SRCPORTMAX 65535 #define BFD_DEFDESTPORT 3784 #define BFD_DEF_ECHO_PORT 3785 #define BFD_DEF_MHOP_DEST_PORT 4784 -- 2.39.5