summaryrefslogtreecommitdiff
path: root/sys/netinet/icmp6.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-06-01 01:30:55 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-06-01 01:30:55 +0000
commit3d6fd0382d82211c3fc923a8af8cbd23a3121ffc (patch)
tree5d2f36b5776e44276b2f81bccebdec875c8bdc3f /sys/netinet/icmp6.h
parent45293e5b3c3d3b99d2820c2a7dfddc8112bf370f (diff)
Add support for advertising route information (RFC 4191).
From FreeBSD via UMEZAWA Takeshi ok bluhm@
Diffstat (limited to 'sys/netinet/icmp6.h')
-rw-r--r--sys/netinet/icmp6.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index c8e2d0ba332..5bd1943fe98 100644
--- a/sys/netinet/icmp6.h
+++ b/sys/netinet/icmp6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.h,v 1.35 2013/03/17 00:38:29 brad Exp $ */
+/* $OpenBSD: icmp6.h,v 1.36 2013/06/01 01:30:53 brad Exp $ */
/* $KAME: icmp6.h,v 1.84 2003/04/23 10:26:51 itojun Exp $ */
/*
@@ -290,6 +290,7 @@ struct nd_opt_hdr { /* Neighbor discovery option header */
#define ND_OPT_PREFIX_INFORMATION 3
#define ND_OPT_REDIRECTED_HEADER 4
#define ND_OPT_MTU 5
+#define ND_OPT_ROUTE_INFO 24
#define ND_OPT_RDNSS 25
#define ND_OPT_DNSSL 31
@@ -322,6 +323,14 @@ struct nd_opt_mtu { /* MTU option */
u_int32_t nd_opt_mtu_mtu;
} __packed;
+struct nd_opt_route_info { /* route info */
+ u_int8_t nd_opt_rti_type;
+ u_int8_t nd_opt_rti_len;
+ u_int8_t nd_opt_rti_prefixlen;
+ u_int8_t nd_opt_rti_flags;
+ u_int32_t nd_opt_rti_lifetime;
+} __packed;
+
struct nd_opt_rdnss { /* RDNSS option */
u_int8_t nd_opt_rdnss_type;
u_int8_t nd_opt_rdnss_len;