Added some comments
FossilOrigin-Name: 80bd78289b5a1670541755108f62e253c9c1e32274c7ca284b5421d72c1b5ef1
This commit is contained in:
parent
7aaae9f98a
commit
ed4182270b
@ -16,6 +16,12 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*@file
|
||||||
|
*@brief Implementation of sock_cmpaddrs
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -25,8 +31,12 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* compare two sockaddrs
|
* compare two sockaddrs
|
||||||
*
|
* @param addr1 first address to compare
|
||||||
|
* @param addr2 second address to compare
|
||||||
|
* @cmpport if not zero, also compare the port
|
||||||
* @return 0 if both addriesses are equal
|
* @return 0 if both addriesses are equal
|
||||||
|
* Currently there are there are only AF_INET and AF_INET6
|
||||||
|
* suppoorted
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int cmpport)
|
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int cmpport)
|
||||||
@ -73,4 +83,3 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user