]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: fix UDP source port range
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 25 Apr 2019 17:41:44 +0000 (14:41 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 25 Apr 2019 19:57:52 +0000 (16:57 -0300)
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)

bfdd/bfd.h

index 3a58a8d53cfeab25e889167cb18a1267c19bc882..09703338dcedf4d05cb77de161c7807b96f7dfc7 100644 (file)
@@ -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