sendto的日志级别修改为INFO
This commit is contained in:
@@ -22,7 +22,7 @@ int packet_inject_ipv4(struct in_addr *ip_dst, const char *data, int len)
|
||||
{
|
||||
char string[256] = {0};
|
||||
inet_ntop(PF_INET, ip_dst, string, sizeof(string));
|
||||
LOG_ERROR("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
|
||||
LOG_INFO("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ int packet_inject_ipv6(struct in6_addr *ip6_dst, const char *data, int len)
|
||||
{
|
||||
char string[256] = {0};
|
||||
inet_ntop(PF_INET6, ip6_dst, string, sizeof(string));
|
||||
LOG_ERROR("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
|
||||
LOG_INFO("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user