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 | |
parent | d4a36771ff62c1fc846cdb4a763b27f466182177 (diff) |
log nexthop status changes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 8 | ||||
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 4 |
2 files changed, 9 insertions, 3 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)); } diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 4a9801af9fc..41517689e63 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.33 2003/12/26 14:27:58 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.34 2003/12/26 14:38:58 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -288,7 +288,7 @@ void log_statechange(struct peer *, enum session_state, void log_notification(struct peer *, u_int8_t, u_int8_t, u_char *, u_int16_t); void log_conn_attempt(struct peer *, struct in_addr); -char *log_ntoa(in_addr_t); +char *log_ntoa(in_addr_t); /* parse.y */ int cmdline_symset(char *); |