summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-04-25 14:41:44 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-04-25 16:57:52 -0300
commit30e24fe92aacc0b9111b109551b7419bcd5fa698 (patch)
treefbdb7fd8425650435ea27b5ab10a10e13dc184d0
parent11db6e2ffcbee0606187a8fc48b537668d3321ed (diff)
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 <rzalamena@opensourcerouting.org> (cherry picked from commit 545d3f704699ac8a7f6600f0ecb031c68c2c13e8)
-rw-r--r--bfdd/bfd.h4
1 files 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