call in_pcbselsrc from rip_output so route sourceaddr can take effect.
authordlg <dlg@openbsd.org>
Mon, 21 Mar 2022 04:00:56 +0000 (04:00 +0000)
committerdlg <dlg@openbsd.org>
Mon, 21 Mar 2022 04:00:56 +0000 (04:00 +0000)
commit3f3f55263d68c79be6c9b0ace5c1b8bf6d7ead64
treee93dd8065adf94e5227f49ee1bcad84143f1956f
parent4ffe052345f560790603cccc7346db73d4f62471
call in_pcbselsrc from rip_output so route sourceaddr can take effect.

previously things that used sendto or similar with raw sockets would
ignore any configured sourceaddr. this made it inconsistent with
other traffic, which in turn makes things confusing to debug if
you're using ping or traceroute (which use raw sockets) to figure
out what's happening to other packets.

the ipv6 equiv already does this too.

ok sthen@ claudio@
sys/netinet/raw_ip.c