From ed4182270b3f1e3ea4f0318defc3adf93e5c10db Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 14 Feb 2016 07:59:19 +0000 Subject: [PATCH] Added some comments FossilOrigin-Name: 80bd78289b5a1670541755108f62e253c9c1e32274c7ca284b5421d72c1b5ef1 --- src/capwap/sock_cmpaddr.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/capwap/sock_cmpaddr.c b/src/capwap/sock_cmpaddr.c index cbd67fe0..1613e752 100644 --- a/src/capwap/sock_cmpaddr.c +++ b/src/capwap/sock_cmpaddr.c @@ -16,6 +16,12 @@ */ + +/** + *@file + *@brief Implementation of sock_cmpaddrs + */ + #include #include #include @@ -25,8 +31,12 @@ /** * 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 + * 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) @@ -73,4 +83,3 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int } -