Connect to localhost instead of www.netbsd.org to a) make this work in non-routed setups b) avoid the dubious security implications. Also, to make the test actually do what it claims to do, call gets
Connect to localhost instead of www.netbsd.org to a) make this work in non-routed setups b) avoid the dubious security implications. Also, to make the test actually do what it claims to do, call getsockname() and verify we got a low port.
show more ...
|