rem: new_sock = open(NET_STACK_DRIVER_PATH, O_RDWR);
add: new_sock = open(get_stack_driver_path(), O_RDWR);
context: _EXPORT int accept(int sock, struct sockaddr *addr, int *addrlen){	struct sockaddr temp;	struct accept_args args;	int	rv;	int	new_sock;	void *cookie;	new_sock = open(NET_STACK_DRIVER_PATH, O_RDWR);	if (new_sock < 0)		return new_sock;		// The network stack driver will need to know to which net_stack_cookie to	// *bind* with the new accepted socket. He can't know himself find out 	// the net_stack_cookie of our new_sock file descriptor, the just open() one...	// So, here, we ask him the net_stack_cookie value for our fd... :-)	rv = ioctl(new_sock, NET_STACK_GET_COOKIE, &cookie);	if (rv < 0) {		close(new_sock);		return rv;	}; 	args.cookie	= cookie; // this way driver can use the right fd/cookie for the new_sock!	args.addr		= g_beos_r5_compatibility ? &temp : addr;	args.addrlen	= g_beos_r5_compatibility ? sizeof(temp) : *addrlen;		rv = ioctl(sock, NET_STACK_ACCEPT, &args, sizeof(args));	if (rv < 0) {		close(new_sock);		return rv;	};	if (g_beos_r5_compatibility) {		convert_to_beos_r5_sockaddr(addr, &temp);		*addrlen = sizeof(struct beosr5_sockaddr_in);	} else		*addrlen = args.addrlen;	return new_sock;}