rem: sock = open(NET_STACK_DRIVER_PATH, O_RDWR);
add: sock = open(get_stack_driver_path(), O_RDWR);
context: _EXPORT int socket(int family, int type, int protocol){	int sock;	int rv;	struct socket_args args;	sock = open(NET_STACK_DRIVER_PATH, O_RDWR);	if (sock < 0)		return sock;	/* work around the old Be header values... *	 *	 * This really sucks...	 *	 * Basically we've modified the new stack SOCK_ values to be	 * start at 10, so if it's below that we're being called by	 * an R5 app.	 *	 * NB	 * Of course this places a lot of restrictions on what we can	 * do with library replacements and improvements as no other	 * component of the "team" can be built using the new 	 * stack.	 */	if (type < SOCK_DGRAM) {		g_beos_r5_compatibility = true;			/* we have old be types... convert... */		if (type == 1)			type = SOCK_DGRAM;		else if (type == 2)			type = SOCK_STREAM;		if (protocol == 1)			protocol = IPPROTO_UDP;		else if (protocol == 2)			protocol = IPPROTO_TCP;		else if (protocol == 3)			protocol = IPPROTO_ICMP;				/* also convert AF_INET */		if (family == 1)			family = AF_INET;	};	args.family = family;	args.type = type;	args.proto = protocol;	rv = ioctl(sock, NET_STACK_SOCKET, &args, sizeof(args));	if (rv < 0) {		close(sock);		return rv;	};	return sock;}