summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/mrt.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-06-04 10:13:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-06-04 10:13:01 +0000
commit799fb4c4bf66d9860e42162af18bd11b95bbe795 (patch)
tree6356203630d73f4d8e07fc86fcf768286e2ef203 /usr.sbin/bgpd/mrt.h
parent19b15c0a8d9479cdf093c5261969a3194031b5f5 (diff)
It is actually possible to dump IPv6 tables with "dump table" and not
"dump table-mp" but this is only possible if the session and the prefixes are from the same address family. Evil little hackery (especially the IPv6 nexthop encoding) but seems to work according to libbgpdump.
Diffstat (limited to 'usr.sbin/bgpd/mrt.h')
-rw-r--r--usr.sbin/bgpd/mrt.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/mrt.h b/usr.sbin/bgpd/mrt.h
index 7447f44b925..d88c01c1b67 100644
--- a/usr.sbin/bgpd/mrt.h
+++ b/usr.sbin/bgpd/mrt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.h,v 1.26 2010/04/22 08:24:58 claudio Exp $ */
+/* $OpenBSD: mrt.h,v 1.27 2010/06/04 10:13:00 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -21,7 +21,7 @@
/*
* MRT binary packet format
* For more info see:
- * draft-ietf-grow-mrt-04.txt, "MRT routing information export format"
+ * draft-ietf-grow-mrt-11.txt, "MRT routing information export format"
* http://www.quagga.net/docs/docs-multi/Packet-Binary-Dump-Format.html
*/
@@ -184,6 +184,7 @@ enum MRT_BGP4MP_TYPES {
/* size of the dump header until attr_len */
#define MRT_DUMP_HEADER_SIZE 22
+#define MRT_DUMP_HEADER_SIZE_V6 46
/*
* OLD MRT message headers. These structs are here for completion but
@@ -235,7 +236,7 @@ enum MRT_BGP_TYPES {
* | new_state |
* +--------+--------+
*
- * State are defined in RFC 1771.
+ * State are defined in RFC 1771/4271.
*/
/*