Docu...
FossilOrigin-Name: 64c4a69be870924329b7fe4cb1e8d03a29e0dbf056ce5c832762fa9cdca2ab84
This commit is contained in:
parent
e654e41062
commit
4048bec461
@ -23,10 +23,10 @@
|
||||
#include "sock.h"
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* compare two sockaddrs
|
||||
* returns 0 if both addrs are equal
|
||||
*
|
||||
* @return 0 if both addriesses are equal
|
||||
*/
|
||||
|
||||
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int cmpport)
|
||||
@ -52,7 +52,6 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
|
||||
s2 = (uint8_t*)&(((struct sockaddr_in*)addr2)->sin_addr);
|
||||
slen = sizeof(struct in_addr);
|
||||
break;
|
||||
#ifdef WITH_IPV6
|
||||
case AF_INET6:
|
||||
if (cmpport){
|
||||
p1 = ((struct sockaddr_in6*)addr1)->sin6_port;
|
||||
@ -64,7 +63,6 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
|
||||
s2 = (uint8_t*)&(((struct sockaddr_in6*)addr2)->sin6_addr);
|
||||
slen = sizeof(struct in6_addr);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user