Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106940597
D37028.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
639 B
Referenced Files
None
Subscribers
None
D37028.diff
View Options
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -219,19 +219,11 @@
/*
* Equality
- * NOTE: Some of kernel programming environment (for example, openbsd/sparc)
- * does not supply memcmp(). For userland memcmp() is preferred as it is
- * in ANSI standard.
*/
-#ifdef _KERNEL
-#define IN6_ARE_ADDR_EQUAL(a, b) \
- (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
-#else
#if __BSD_VISIBLE
#define IN6_ARE_ADDR_EQUAL(a, b) \
(memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
#endif
-#endif
/*
* Unspecified
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 7:17 PM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725867
Default Alt Text
D37028.diff (639 B)
Attached To
Mode
D37028: in6: Consolidate IN6_ARE_ADDR_EQUAL definitions
Attached
Detach File
Event Timeline
Log In to Comment