aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/ip_addr.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-05-25 19:34:01 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-26 14:21:44 (GMT)
commitfc3f1d1b4d386952a621c121faf099b99db8e574 (patch)
treed858b43702e5befb25ce3c0896ff9a940aec22d1 /src/utils/ip_addr.c
parent3eb744a35abb551796566a19f57131dfbb4806d0 (diff)
downloadhostap-fc3f1d1b4d386952a621c121faf099b99db8e574.zip
hostap-fc3f1d1b4d386952a621c121faf099b99db8e574.tar.gz
hostap-fc3f1d1b4d386952a621c121faf099b99db8e574.tar.bz2
Remove unused hostapd_ip_diff()
There are no users of this function. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/utils/ip_addr.c')
-rw-r--r--src/utils/ip_addr.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/utils/ip_addr.c b/src/utils/ip_addr.c
index 3647c76..92a3590 100644
--- a/src/utils/ip_addr.c
+++ b/src/utils/ip_addr.c
@@ -33,30 +33,6 @@ const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
}
-int hostapd_ip_diff(struct hostapd_ip_addr *a, struct hostapd_ip_addr *b)
-{
- if (a == NULL && b == NULL)
- return 0;
- if (a == NULL || b == NULL)
- return 1;
-
- switch (a->af) {
- case AF_INET:
- if (a->u.v4.s_addr != b->u.v4.s_addr)
- return 1;
- break;
-#ifdef CONFIG_IPV6
- case AF_INET6:
- if (os_memcmp(&a->u.v6, &b->u.v6, sizeof(a->u.v6)) != 0)
- return 1;
- break;
-#endif /* CONFIG_IPV6 */
- }
-
- return 0;
-}
-
-
int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr)
{
#ifndef CONFIG_NATIVE_WINDOWS