Fix rarpd hang. The receive buffer of a route socket can become full
authorvisa <visa@openbsd.org>
Mon, 25 Jul 2016 16:28:06 +0000 (16:28 +0000)
committervisa <visa@openbsd.org>
Mon, 25 Jul 2016 16:28:06 +0000 (16:28 +0000)
commit8b5a6ab3ebc9daaa473a2b700b4d6b1a1cef3bed
tree9e8d88b0b7369c8d7245df5393366b0f4f76637a
parent1f7812f8186400f73c0d48ebbeec210c398e6db6
Fix rarpd hang. The receive buffer of a route socket can become full
while rarpd process is idle. To avoid getting stuck in rtmsg(),
the process has to clear the buffer and retry.

ok benno@ deraadt@ millert@
usr.sbin/rarpd/arptab.c