From d7fd4a13c62ac2d16ea4e2646be3b76940fef497 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 23 Dec 2003 01:06:22 +0000 Subject: allow the listening address to be specified, default to INADDR_ANY should make jose@ happy --- usr.sbin/bgpd/config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/config.c') diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c index 2e008b19fc3..dc2d26d0c2d 100644 --- a/usr.sbin/bgpd/config.c +++ b/usr.sbin/bgpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.2 2003/12/19 14:23:28 henning Exp $ */ +/* $OpenBSD: config.c,v 1.3 2003/12/23 01:06:21 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "bgpd.h" @@ -66,6 +67,9 @@ merge_config(struct bgpd_config *xconf, struct bgpd_config *conf) if (!xconf->min_holdtime) xconf->min_holdtime = conf->min_holdtime = MIN_HOLDTIME; + memcpy(&xconf->listen_addr, &conf->listen_addr, + sizeof(xconf->listen_addr)); + /* * as we cannot get the negotiated holdtime in the main process, * the session engine needs to check it against the possibly new values -- cgit v1.2.3