summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/config.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-27 16:49:54 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-27 16:49:54 +0000
commitb90dcea62391e72344b88933bec736cf5abe9f5f (patch)
tree2799dae7e243490fb377d28be332d25fa779a061 /usr.sbin/bgpd/config.c
parente4e7fa53836f3e4df92922382229f61df1b0ac80 (diff)
use a struct bgpd_addr instead of sockaddr_in for peer_config->local_addr and
->remote_addr for easier multiprotocol support ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r--usr.sbin/bgpd/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c
index e2eb48ddb0d..8201b56b776 100644
--- a/usr.sbin/bgpd/config.c
+++ b/usr.sbin/bgpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.21 2004/01/27 14:09:36 markus Exp $ */
+/* $OpenBSD: config.c,v 1.22 2004/01/27 16:49:53 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -98,5 +98,5 @@ get_id(struct peer *p)
/*
* XXX this collides with multiviews and will need more clue later XXX
*/
- return (ntohl(p->conf.remote_addr.sin_addr.s_addr));
+ return (ntohl(p->conf.remote_addr.v4.s_addr));
}