]> git.puffer.fish Git - matthieu/frr.git/commit
ripd: switch from sendto() to sendmsg()
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 4 Jan 2019 21:08:10 +0000 (19:08 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Jan 2019 18:15:41 +0000 (16:15 -0200)
commite35356af91b72da7f4e7fe03c43babb51e369bc0
treea4e4be9b32e927ebdd989c5bd56baecaf15ccf55
parent37345802af89567a5238d8894c0ef4e273c9d0c0
ripd: switch from sendto() to sendmsg()

For unknown reasons, the IP_MULTICAST_IF sockoption doesn't
seem to work when the given socket is bound to a VRF device on
Linux. Switch from sendto() to sendmsg() so that we can specify the
outgoing interface of multicast packets using IP_PKTINFO ancillary
data. This also makes ripd more consistent with ripngd, which also
uses sendmsg() to send packets on the wire.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripd/ripd.c