summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-08-03 14:00:16 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-08-03 14:00:16 +0000
commitd3d2e11bc0b9d927773fecfd983e034324cfd1de (patch)
treee83067d0bde224402a215826fca0f227ecb1f910 /usr.sbin/bgpd
parent7677c2239c0e9ecf2605c6875409aa66a80ff6fc (diff)
Make mrt dumps mrt compliant. I already fixed one of those but this one
slipped my attention. Now all bgpd dumps can be read with mrt's route_btoa.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/mrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/mrt.c b/usr.sbin/bgpd/mrt.c
index ae32e699ac3..aabf9ba9e61 100644
--- a/usr.sbin/bgpd/mrt.c
+++ b/usr.sbin/bgpd/mrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.c,v 1.36 2004/07/28 16:00:02 claudio Exp $ */
+/* $OpenBSD: mrt.c,v 1.37 2004/08/03 14:00:15 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -101,7 +101,7 @@ mrt_dump_bgp_msg(struct mrt *mrt, void *pkg, u_int16_t pkglen,
DUMP_SHORT(buf, bgp->as);
DUMP_SHORT(buf, peer->remote_as);
DUMP_SHORT(buf, /* ifindex */ 0);
- DUMP_SHORT(buf, 4);
+ DUMP_SHORT(buf, AFI_IPv4);
DUMP_NLONG(buf, peer->local_addr.v4.s_addr);
DUMP_NLONG(buf, peer->remote_addr.v4.s_addr);