Don't use IP_SENDSRCADDR (in sendfromto) if on FreeBSD and the socket were using...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jan 2014 14:36:23 +0000 (14:36 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jan 2014 14:55:57 +0000 (14:55 +0000)
commit4231d79e43e1ab2adaa737b08029fbffd48aae6d
treef6350946d6d831e9b53a0d460c974713991ed6c3
parente22d221f2c1769fd20327c2d94fa6d061663a633
Don't use IP_SENDSRCADDR (in sendfromto) if on FreeBSD and the socket were using is bound to a specific IP

FreeBSD is extra pedantic about the use of IP_SENDSRCADDR, and sendmsg will fail with EINVAL if IP_SENDSRCADDR is used with a socket which is bound to something other than INADDR_ANY.
src/lib/udpfromto.c