Browse Source

Remove the log of sockaddr_cmp

pull/1887/merge
Max Lv 6 years ago
parent
commit
b95495e71d
1 changed files with 0 additions and 9 deletions
  1. 9
      src/netutils.c

9
src/netutils.c

@ -207,9 +207,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1,
return -1;
if (p1_in->sin_family > p2_in->sin_family)
return 1;
if (verbose) {
LOGI("sockaddr_cmp: sin_family equal? %d", p1_in->sin_family == p2_in->sin_family);
}
/* compare ip4 */
if (p1_in->sin_family == AF_INET) {
/* just order it, ntohs not required */
@ -217,9 +214,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1,
return -1;
if (p1_in->sin_port > p2_in->sin_port)
return 1;
if (verbose) {
LOGI("sockaddr_cmp: sin_port equal? %d", p1_in->sin_port == p2_in->sin_port);
}
return memcmp(&p1_in->sin_addr, &p2_in->sin_addr, INET_SIZE);
} else if (p1_in6->sin6_family == AF_INET6) {
/* just order it, ntohs not required */
@ -227,9 +221,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1,
return -1;
if (p1_in6->sin6_port > p2_in6->sin6_port)
return 1;
if (verbose) {
LOGI("sockaddr_cmp: sin6_port equal? %d", p1_in6->sin6_port == p2_in6->sin6_port);
}
return memcmp(&p1_in6->sin6_addr, &p2_in6->sin6_addr,
INET6_SIZE);
} else {

Loading…
Cancel
Save