diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-09-17 16:29:45 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-09-17 16:29:45 +0000 |
commit | cacc58fdb8088fbadf3df590d89b52284739245e (patch) | |
tree | 162e1e4fd8f1b70906866993ece32b6918b76b9b /usr.sbin/bgpd/rde.h | |
parent | a4c1c20265bac501e49424d87603f7ff9d832166 (diff) |
Implement new mrt table dump format as specified in draft-ietf-grow-mrt.
Tested with IP and IPv6 sessions and against the libbgpdump parser.
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index d2a594b9696..853fbfb6f23 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.138 2010/11/18 12:18:31 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.139 2011/09/17 16:29:44 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and @@ -72,6 +72,7 @@ struct rde_peer { enum peer_state state; u_int16_t ribid; u_int16_t short_as; + u_int16_t mrt_idx; u_int8_t reconf_in; /* in filter changed */ u_int8_t reconf_out; /* out filter changed */ u_int8_t reconf_rib; /* rib changed */ @@ -401,6 +402,7 @@ void prefix_move(struct rde_aspath *, struct prefix *); int prefix_remove(struct rib *, struct rde_peer *, struct bgpd_addr *, int, u_int32_t); int prefix_write(u_char *, int, struct bgpd_addr *, u_int8_t); +int prefix_writebuf(struct ibuf *, struct bgpd_addr *, u_int8_t); struct prefix *prefix_bypeer(struct rib_entry *, struct rde_peer *, u_int32_t); void prefix_updateall(struct rde_aspath *, enum nexthop_state, |