diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 16:49:54 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 16:49:54 +0000 |
commit | b90dcea62391e72344b88933bec736cf5abe9f5f (patch) | |
tree | 2799dae7e243490fb377d28be332d25fa779a061 /usr.sbin/bgpd/log.c | |
parent | e4e7fa53836f3e4df92922382229f61df1b0ac80 (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/log.c')
-rw-r--r-- | usr.sbin/bgpd/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c index da69ff0ce33..bbece753be9 100644 --- a/usr.sbin/bgpd/log.c +++ b/usr.sbin/bgpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.22 2004/01/23 21:17:51 henning Exp $ */ +/* $OpenBSD: log.c,v 1.23 2004/01/27 16:49:53 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -110,7 +110,7 @@ log_fmt_peer(const struct peer_config *peer) char *ip; char *pfmt; - ip = inet_ntoa(peer->remote_addr.sin_addr); + ip = log_addr(&peer->remote_addr); if (peer->descr[0]) { if (asprintf(&pfmt, "neighbor %s (%s)", ip, peer->descr) == -1) @@ -383,7 +383,7 @@ log_ntoa(in_addr_t ip) } char * -log_addr(struct bgpd_addr *addr) { +log_addr(const struct bgpd_addr *addr) { switch (addr->af) { case AF_INET: return (inet_ntoa(addr->v4)); |