Hi,
I am using the attached program.c#testreuseaddress(). I
wanted to use
the same address for different socket
but am getting errno=EADDRINUSE for netbsd for 2nd bind
although for
linux, there is no problem
Attached are the output from linux and netbsd
Can anyone point as to what I need to do extra for netbsd to
make the
address reusable?! Or is it a bug in netbsd?
Regards
Prasanta
socket fd 3
setsockopt ret 0
bind ret 0, errno 0
2nd socket fd 4
setsockopt ret 0
2nd bind ret 0 errno 0
socket fd 3
setsockopt ret 0
bind ret 0, errno 0
2nd socket fd 4
setsockopt ret 0
2nd bind ret -1 errno 48
|