diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-04-28 04:36:17 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-04-28 04:36:17 +0000 |
commit | 892623889fa0a76432b90381a100eb6610f49ae5 (patch) | |
tree | 61c891a874ced653bc589f5b16a01a72b0c334b6 /usr.sbin/bgpd | |
parent | a74a7b8c8a2841ed40215b8f990ca2f8b09de85a (diff) |
Unbreak the stuff that I commited first that was totaly broken. OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index ef84b6d689e..ae60ae43a87 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.107 2004/04/28 03:34:38 henning Exp $ */ +/* $OpenBSD: rde.c,v 1.108 2004/04/28 04:36:16 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1056,18 +1056,22 @@ peer_down(u_int32_t id) void peer_dump(u_int32_t id, u_int16_t afi, u_int8_t safi) { + struct rde_peer *peer; + + peer = peer_get(id); + if (peer == NULL) { + log_warnx("peer_down: unknown peer id %d", id); + return; + } + if (afi == AFI_ALL || afi == AFI_IPv4) if (safi == SAFI_ALL || safi == SAFI_UNICAST || safi == SAFI_BOTH) { -#if 0 pt_dump(up_dump_upcall, peer); -#endif return; } -#if 0 log_peer_warnx(&peer->conf, "unsupported AFI, SAFI combination"); -#endif } /* |