summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2017-05-27 10:55:46 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2017-05-27 10:55:46 +0000
commit45e567a3b4f6dcb0a04e7ab4b039063dffcd88f1 (patch)
treebe6b186db8f05224d729ac35a3d926df8e41ed3b /usr.sbin
parent33daed407021562ee11483defb5d377df0d05df5 (diff)
this expects 2byte ASN, so use that, instead of an asn that may or may not fit
noticed by and OK claudio@
Diffstat (limited to 'usr.sbin')
-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 3448ac74005..468ad5eaec8 100644
--- a/usr.sbin/bgpd/mrt.c
+++ b/usr.sbin/bgpd/mrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.c,v 1.82 2017/01/24 04:22:42 benno Exp $ */
+/* $OpenBSD: mrt.c,v 1.83 2017/05/27 10:55:45 phessler Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -275,7 +275,7 @@ mrt_dump_entry_mp(struct mrt *mrt, struct prefix *p, u_int16_t snum,
goto fail;
}
- DUMP_SHORT(h2buf, rde_local_as());
+ DUMP_SHORT(h2buf, peer->conf.local_short_as);
DUMP_SHORT(h2buf, peer->short_as);
DUMP_SHORT(h2buf, /* ifindex */ 0);