about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 9f73638e05..4fd64d7829 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -297,8 +297,8 @@ extern uint16_t htons (uint16_t __hostshort)
 
 #define IN6_ARE_ADDR_EQUAL(a,b) \
 	((((uint32_t *) (a))[0] == ((uint32_t *) (b))[0]) && \
-	 (((uint32_t *) (a))[1] == ((uint32_t *) (b))[2]) && \
-	 (((uint32_t *) (a))[2] == ((uint32_t *) (b))[1]) && \
+	 (((uint32_t *) (a))[1] == ((uint32_t *) (b))[1]) && \
+	 (((uint32_t *) (a))[2] == ((uint32_t *) (b))[2]) && \
 	 (((uint32_t *) (a))[3] == ((uint32_t *) (b))[3]))
 
 /* Bind socket to a privileged IP port.  */