-/* $OpenBSD: rde.c,v 1.330 2015/03/14 03:52:42 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.331 2015/06/19 14:54:12 phessler Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
/* max prefix checker */
if (peer->conf.max_prefix &&
peer->prefix_cnt >= peer->conf.max_prefix) {
- log_peer_warnx(&peer->conf, "prefix limit reached");
+ log_peer_warnx(&peer->conf, "prefix limit reached"
+ " (>%u/%u)", peer->prefix_cnt, peer->conf.max_prefix);
rde_update_err(peer, ERR_CEASE, ERR_CEASE_MAX_PREFIX,
NULL, 0);
goto done;
if (peer->conf.max_prefix &&
peer->prefix_cnt >= peer->conf.max_prefix) {
log_peer_warnx(&peer->conf,
- "prefix limit reached");
+ "prefix limit reached"
+ " (>%u/%u)", peer->prefix_cnt,
+ peer->conf.max_prefix);
rde_update_err(peer, ERR_CEASE,
ERR_CEASE_MAX_PREFIX, NULL, 0);
goto done;
if (peer->conf.max_prefix &&
peer->prefix_cnt >= peer->conf.max_prefix) {
log_peer_warnx(&peer->conf,
- "prefix limit reached");
+ "prefix limit reached"
+ " (>%u/%u)", peer->prefix_cnt,
+ peer->conf.max_prefix);
rde_update_err(peer, ERR_CEASE,
ERR_CEASE_MAX_PREFIX, NULL, 0);
goto done;