diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 14:38:59 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 14:38:59 +0000 |
commit | 4d0fc7138acb99140f0a2c59f4f3cc21957b4c79 (patch) | |
tree | 09cc2240046b9f7946fd1bcb06b2f0b22e57334f /usr.sbin/bgpd/bgpd.c | |
parent | d4a36771ff62c1fc846cdb4a763b27f466182177 (diff) |
log nexthop status changes
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 5dae0140f7c..b0344e7dcb1 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.32 2003/12/26 00:49:52 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.33 2003/12/26 14:38:58 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -379,6 +379,12 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_config *conf) void send_nexthop_update(struct kroute_nexthop *msg) { + logit(LOG_INFO, "nexthop %s now %s%s%s%s", log_ntoa(msg->nexthop), + msg->valid ? "valid" : "invalid", + msg->connected ? ", connected" : "", + msg->gateway ? ", via " : "", + msg->gateway ? log_ntoa(msg->gateway) : ""); + imsg_compose(&ibuf_rde, IMSG_NEXTHOP_UPDATE, 0, msg, sizeof(struct kroute_nexthop)); } |