summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
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/bgpd.h
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/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 7e85cffff5c..d33a0833e61 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.81 2004/01/27 14:09:36 markus Exp $ */
+/* $OpenBSD: bgpd.h,v 1.82 2004/01/27 16:49:53 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -127,8 +127,8 @@ struct peer_config {
u_int32_t id;
char group[PEER_DESCR_LEN];
char descr[PEER_DESCR_LEN];
- struct sockaddr_in remote_addr;
- struct sockaddr_in local_addr;
+ struct bgpd_addr remote_addr;
+ struct bgpd_addr local_addr;
u_long max_prefix;
u_int16_t remote_as;
u_int8_t ebgp; /* 1 = ebgp, 0 = ibgp */
@@ -294,7 +294,7 @@ void fatal(const char *);
void fatalx(const char *);
void fatal_ensure(const char *, int, const char *);
char *log_ntoa(in_addr_t);
-char *log_addr(struct bgpd_addr *);
+char *log_addr(const struct bgpd_addr *);
/* parse.y */
int cmdline_symset(char *);