diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-16 04:51:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-16 04:51:10 +0000 |
commit | 606cbe93de42cac7de618119fc26fbf7340e2cf8 (patch) | |
tree | 77586a6ded9d78e5896bd42c6e2c5b1bac91eec5 /usr.sbin/bgpd/control.c | |
parent | 374e97c20bf1b025845062215ef2ff435ede7463 (diff) |
use getpeerbyaddr() instead of using the v4 part of the af independent
struct manually
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index 785bbd81f08..72db4f67745 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.26 2004/03/17 14:39:45 henning Exp $ */ +/* $OpenBSD: control.c,v 1.27 2004/04/16 04:51:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -216,7 +216,7 @@ control_dispatch_msg(struct pollfd *pfd, int i) if (imsg.hdr.len == IMSG_HEADER_SIZE + sizeof(struct bgpd_addr)) { addr = imsg.data; - p = getpeerbyip(addr->v4.s_addr); + p = getpeerbyaddr(addr); if (p != NULL) imsg_compose(&c->ibuf, IMSG_CTL_SHOW_NEIGHBOR, @@ -237,7 +237,7 @@ control_dispatch_msg(struct pollfd *pfd, int i) if (imsg.hdr.len == IMSG_HEADER_SIZE + sizeof(struct bgpd_addr)) { addr = imsg.data; - p = getpeerbyip(addr->v4.s_addr); + p = getpeerbyaddr(addr); if (p != NULL) bgp_fsm(p, EVNT_START); else @@ -251,7 +251,7 @@ control_dispatch_msg(struct pollfd *pfd, int i) if (imsg.hdr.len == IMSG_HEADER_SIZE + sizeof(struct bgpd_addr)) { addr = imsg.data; - p = getpeerbyip(addr->v4.s_addr); + p = getpeerbyaddr(addr); if (p != NULL) bgp_fsm(p, EVNT_STOP); else |