diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 22:11:24 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 22:11:24 +0000 |
commit | f94e50b7a793c6a1b782da332f55c18ffb8df678 (patch) | |
tree | 4c5acd270a5e51b43889695b831ca485d3ce8e4d /usr.sbin/bgpctl/bgpctl.c | |
parent | cd08368f301e288121897ac1b2491843dc30bd1c (diff) |
don't use log_ntoa, claudio ok
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 3164320ff76..5323aa8ef06 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.38 2004/01/27 21:56:47 henning Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.39 2004/01/27 22:11:23 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -255,17 +255,19 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv) { struct peer *p; struct sockaddr_in *sa_in; + struct in_addr ina; switch (imsg->hdr.type) { case IMSG_CTL_SHOW_NEIGHBOR: p = imsg->data; + ina.s_addr = p->remote_bgpid; printf("BGP neighbor is %s, remote AS %u\n", log_addr(&p->conf.remote_addr), p->conf.remote_as); if (p->conf.descr[0]) printf(" Description: %s\n", p->conf.descr); printf(" BGP version 4, remote router-id %s\n", - log_ntoa(p->remote_bgpid)); + inet_ntoa(ina)); printf(" BGP state = %s", statenames[p->state]); if (p->stats.last_updown != 0) printf(", %s for %s", |