version 1.22.6.4, 2014/12/11 00:08:53
|
version 1.22.6.5, 2014/12/19 02:12:49
|
Line 350 rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
|
Line 350 rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
|
do { |
do { |
if (type == SOCK_STREAM) |
if (type == SOCK_STREAM) |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen); |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen); |
else | else if (type == SOCK_BPF) { |
| ret = rpc_Read(sock, type, 0, sa, AIT_GET_BUF(pkt), AIT_LEN(pkt)); |
| if (ret > 0) |
| estlen = ret; |
| } else |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, sa, buf, blen); |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, sa, buf, blen); |
if (ret < 1) |
if (ret < 1) |
return ret; |
return ret; |