newip静态检查告警清理

Signed-off-by: liangbotong <liangbotong@huawei.com>
This commit is contained in:
liangbotong
2023-03-20 13:59:28 +08:00
parent 1f1ac6aebd
commit 0ac86f214b
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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;
+1 -1
View File
@@ -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;