Commit 318acb0f authored by Ondřej Zajíček's avatar Ondřej Zajíček

BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD

BSD systems cannot use SO_DONTROUTE, because it does not work properly
with multicast packets (perhaps it tries to find iface based on multicast
group address). But we can use MSG_DONTROUTE sendmsg() flag for unicast
packets. Works on FreeBSD, is ignored on OpenBSD and is broken on NetBSD
(i guess due to integrated routing table and ARP table).
parent 0ed3129f
Pipeline #38207 passed with stages
in 4 minutes and 11 seconds