[OpenWrt-Devel] [PATCH 2/6] system: fix typo in returning address length.

Yousong Zhou yszhou4tech at gmail.com
Tue May 19 08:38:29 EDT 2015


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 system.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system.h b/system.h
index 94e0dd9..382c907 100644
--- a/system.h
+++ b/system.h
@@ -91,7 +91,7 @@ static inline int system_get_addr_family(unsigned int flags)
 
 static inline int system_get_addr_len(unsigned int flags)
 {
-	if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6)
+	if ((flags & DEVADDR_FAMILY) != DEVADDR_INET6)
 		return sizeof(struct in_addr);
 	else
 		return sizeof(struct in6_addr);
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list