[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bgpd: fd passing to solve listener reconfig at runtime
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: bgpd: fd passing to solve listener reconfig at runtime
- From: Henning Brauer <henning_(_at_)_openbsd_(_dot_)_org>
- Date: Fri, 18 Jun 2004 16:46:19 -0700
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
* Tamas MEZEI <tamas_(_at_)_bazmag_(_dot_)_hu> [2004-06-18 13:50]:
> > fatal("fcntl");
> >
> >+ prepare_listeners(&conf);
> >+
> > /* fork children */
> [...]
> >
> >+ prepare_listeners(conf);
>
> bgpd.c says that conf is a bgpd_config struct, prepare_listeners() needs
> a pointer pointing to a bgpd_config struct.
>
> There's a missing '&' sign in the 2nd preprare_listeners() call.
no, sorry, you are wrong.
the first call to prepare_listeners() is from main(), where conf is
defined as
struct bgpd_config conf;
so everything is cool there.
However, the second call is from reconfigure, and conf is...
int
reconfigure(char *conffile, struct bgpd_config *conf, struct mrt_head *mrt_l,
struct peer **peer_l, struct filter_head *rules_l)
{
...already a pointer.
thanks for checking nontheless tho.
Visit your host, monkey.org