Added ns_socketpair2 for datagram sockets