diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 14:26:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 14:26:03 +0000 |
commit | 009bf3e7fd7d1e17d765aa17f31979538e741441 (patch) | |
tree | ab7c6ec056e5228d836e7bfb988005991fa5db67 /usr.sbin | |
parent | 22e67bbad6f6273fa13c4d8e2ccc4f6471190e33 (diff) |
remove he pathetic log_kroute()
not used anywhere anyway
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/log.c | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index b878cf9f433..714081da817 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.31 2003/12/26 00:49:52 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.32 2003/12/26 14:26:02 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -275,7 +275,6 @@ void msgbuf_init(struct msgbuf *); void msgbuf_clear(struct msgbuf *); int msgbuf_write(struct msgbuf *); - /* log.c */ void log_init(int); void logit(int, const char *, ...); @@ -289,7 +288,6 @@ 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); -void log_kroute(int, const char *, struct kroute *); /* parse.y */ int cmdline_symset(char *); diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index 7957c87af21..43230c1d976 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.5 2003/12/24 19:21:20 henning Exp $ */ +/* $OpenBSD: log.c,v 1.6 2003/12/26 14:26:02 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -308,15 +308,3 @@ log_conn_attempt(struct peer *peer, struct in_addr remote) free(p); } } - -void -log_kroute(int pri, const char *lmsg, struct kroute *kr) -{ - char *ip; - struct in_addr ina; - - ina.s_addr = kr->prefix; - - ip = inet_ntoa(ina); - logit(pri, "%s %s/%u", lmsg, ip, kr->prefixlen); -} |