提交 a245403f 编写于 作者: N NightIsDark 提交者: guo

多网卡应用下,accept创建的socket应该和server使用一样的网卡(默认网卡不一定正确)

上级 de4fc407
......@@ -619,7 +619,8 @@ int sal_accept(int socket, struct sockaddr *addr, socklen_t *addrlen)
LOG_E("New socket registered failed, return error %d.", retval);
return -1;
}
/* new socket create by accept should have the same netdev with server*/
new_sock->netdev = sock->netdev;
/* socket structure user_data used to store the acquired new socket */
new_sock->user_data = (void *) new_socket;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册