This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] defined ND_RA_FLAG_HA for compatibility with BSD
- From: Dan Luedtke <maildanrl at gmail dot com>
- To: libc-alpha at sourceware dot org
- Cc: Dan Luedtke <danrl at danrl dot de>
- Date: Wed, 12 Feb 2014 22:50:55 +0100
- Subject: [PATCH] defined ND_RA_FLAG_HA for compatibility with BSD
- Authentication-results: sourceware.org; auth=none
---
ChangeLog | 1 +
inet/netinet/icmp6.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ebf0d68..11bed37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
(ND_RA_FLAG_RTPREF_MASK): Likewise.
(ND_RA_FLAG_RTPREF_RSV): Likewise.
(ND_RA_FLAG_PROXY): Likewise.
+ (ND_RA_FLAG_HA): Likewise.
(ND_OPT_ROUTE_INFO): Likewise.
(ND_OPT_RDNSS): Likewise.
(ND_OPT_ADDRESS_REGISTRATION): Likewise.
diff --git a/inet/netinet/icmp6.h b/inet/netinet/icmp6.h
index 77f8151..86e45b2 100644
--- a/inet/netinet/icmp6.h
+++ b/inet/netinet/icmp6.h
@@ -135,6 +135,8 @@ struct nd_router_advert /* router advertisement */
#define ND_RA_FLAG_MANAGED 0x80
#define ND_RA_FLAG_OTHER 0x40
#define ND_RA_FLAG_HOME_AGENT 0x20
+/* For compatibility with BSD. */
+#define ND_RA_FLAG_HA ND_RA_FLAG_HOME_AGENT
#define ND_RA_FLAG_RTPREF_LOW 0x18
#define ND_RA_FLAG_RTPREF_MEDIUM 0x00
#define ND_RA_FLAG_RTPREF_HIGH 0x08
--
1.8.5.3