On Mon, Jan 24, 2011 at 08:04:05PM -0500, Brad wrote: > Can you also check the rest of socket.c for the other uses of > setsockopt(), specifically > the SO_REUSEADDR cases?
Those are fine, they take an int as optval. See setsockopt(2). (also, the code works correctly with only the IP_MULTICAST_LOOP setsockopt fixed)