]> git.puffer.fish Git - mirror/frr.git/commit
bfdd: fix IPv4 socket source selection 12419/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 24 Nov 2022 14:16:18 +0000 (11:16 -0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 29 Nov 2022 15:04:29 +0000 (15:04 +0000)
commit836c3a35f6d434335b75753cf8c34f6f5eead359
treefd082ce35f6daebcdd21ab6bfcc4dfa258da60da
parent37ea1e70143f012e0469a8a4af81407f4460ff63
bfdd: fix IPv4 socket source selection

The imported BFD code had some logic to ignore the source address when
using single hop IPv4. The BFD peer socket function should allow the
source to be selected so we can:
1. Select the source address in the outgoing packets
2. Only receive packets from that specific source

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit f68114c1c397a939fd758af072c37d535f1de92f)
bfdd/bfd_packet.c