update the relay dns code to open a new udp socket to send the
authorreyk <reyk@openbsd.org>
Wed, 9 Jul 2008 10:50:34 +0000 (10:50 +0000)
committerreyk <reyk@openbsd.org>
Wed, 9 Jul 2008 10:50:34 +0000 (10:50 +0000)
commitbec706fef7186f05da341df2607aa31ddda1c40c
tree9a74283e2cec559a8b20c4e41e26e8cc46a7a136
parent65903de8a058aba86ce1403997c05c92629ef2e7
update the relay dns code to open a new udp socket to send the
forwarded dns request to the server instead of sending from the server
socket.  this will fix the limitation the the dns relay had to listen
to the "0.0.0.0" address, and will also enable relayd to use the udp
source port randomization. relayd will know randomize the source port
(on OpenBSD) and DNS request identifier for the clients behind it.

ok pyr@
usr.sbin/relayd/relay_udp.c
usr.sbin/relayd/relayd.h