summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-02-15 12:26:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-02-15 12:26:38 +0000
commite54a03b3928be4bf958f74806443df6f02df0054 (patch)
treec7dab24f9631c64e60736bb8f33b173a2db14c15 /usr.sbin/bgpd/rde.c
parentc4a46ebe7be68ef9c57319cdcd2d5cde8eb89ccc (diff)
Use log_as() to print the offending neighbor-as instead of printing it
as an int. This way 4-byte ASes should be printed nicely. OK deraadt@ henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index c2ea67bd0eb..6d2d1ba3ef5 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.306 2011/01/29 17:10:45 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.307 2011/02/15 12:26:37 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -922,8 +922,8 @@ rde_update_dispatch(struct imsg *imsg)
fas = aspath_neighbor(asp->aspath);
if (peer->conf.remote_as != fas) {
log_peer_warnx(&peer->conf, "bad path, "
- "starting with %i, "
- "enforce neighbor-as enabled", fas);
+ "starting with %s, "
+ "enforce neighbor-as enabled", log_as(fas));
rde_update_err(peer, ERR_UPDATE, ERR_UPD_ASPATH,
NULL, 0);
goto done;