summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-25 23:31:17 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-25 23:31:17 +0000
commit7f0c2302d7b689549cc11dfc190c1cc5d43a478f (patch)
treeb345904db24b858d4fe210422e80fb18a85bd107 /usr.sbin
parent64ace9831c541c9f496164bdda4329d7d6485cb7 (diff)
there's a slight difference between teh local and the remote sockaddr...
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index bdaaec2e12f..36ed6dcb5ab 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.52 2004/04/25 20:04:37 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.53 2004/04/25 23:31:16 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -366,8 +366,8 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv)
}
printf(" Local host: %20s, Local port: %5s\n", buf, pbuf);
- if (getnameinfo((struct sockaddr *)&p->sa_local,
- p->sa_local.ss_len,
+ if (getnameinfo((struct sockaddr *)&p->sa_remote,
+ p->sa_remote.ss_len,
buf, sizeof(buf), pbuf, sizeof(pbuf),
NI_NUMERICHOST | NI_NUMERICSERV)) {
strlcpy(buf, "(unknown)", sizeof(buf));