mirror of
https://github.com/openharmony/kernel_common_modules_newip.git
synced 2026-07-01 21:34:18 -04:00
@@ -86,8 +86,9 @@ int _recvfrom(int cfd, struct sockaddr_nin *si_server, int pkt_num, int *success
|
||||
if (ret > 0) {
|
||||
*success += 1;
|
||||
ret = sscanf(buf, "%d %d NIP_UDP # %d", &tmp, &tmp, &no);
|
||||
printf("Received --%s sock %d success:%6d/%6d/no=%6d\n",
|
||||
buf, cfd, *success, pkt_num + 1, no);
|
||||
if (ret)
|
||||
printf("Received --%s sock %d success:%6d/%6d/no=%6d\n",
|
||||
buf, cfd, *success, pkt_num + 1, no);
|
||||
} else {
|
||||
printf("client recvfrom fail, ret=%d\n", ret);
|
||||
return -1;
|
||||
|
||||
@@ -360,7 +360,7 @@ struct dst_entry *nip_sk_dst_lookup_flow(struct sock *sk, struct flow_nip *fln)
|
||||
|
||||
int tcp_nip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl)
|
||||
{
|
||||
int err;
|
||||
int err = -EHOSTUNREACH;
|
||||
struct net *net = sock_net(sk);
|
||||
struct nip_addr *saddr, *daddr;
|
||||
struct dst_entry *dst;
|
||||
|
||||
Reference in New Issue
Block a user