From 7aeb3a79bc1aca5c2d6eb68c4cde5c30e6c47949 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Mon, 22 Jun 2009 11:14:15 +0000 Subject: Log a warning when "enforce remote-as" is triggered. ok claudio@ --- usr.sbin/bgpd/rde.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd') 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 @@ -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; -- cgit v1.2.3