Add FreeBSD to socket_test.cc, remove trailing NUL from packet.