summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-06-22 11:14:15 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-06-22 11:14:15 +0000
commit7aeb3a79bc1aca5c2d6eb68c4cde5c30e6c47949 (patch)
tree0ed740244167c93aefc172ffb5498acf173982fb /usr.sbin/bgpd
parentaaa9c822d93dbf3572446599aabcf49521090f28 (diff)
Log a warning when "enforce remote-as" is triggered. ok claudio@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index f9282c3e07a..17d0ffbb0bd 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.262 2009/06/07 05:56:24 eric Exp $ */
+/* $OpenBSD: rde.c,v 1.263 2009/06/22 11:14:14 sthen Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -824,6 +824,8 @@ rde_update_dispatch(struct imsg *imsg)
peer->conf.enforce_as == ENFORCE_AS_ON)
if (peer->conf.remote_as !=
aspath_neighbor(asp->aspath)) {
+ log_peer_warnx(&peer->conf, "bad path, "
+ "enforce remote-as enabled");
rde_update_err(peer, ERR_UPDATE, ERR_UPD_ASPATH,
NULL, 0);
goto done;