Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 2009 19:31:48 +0000 (GMT)
From:      Iain Hibbert <plunky@rya-online.net>
To:        Alexander Motin <mav@mavhome.dp.ua>
Cc:        "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org>
Subject:   Re: pan profile support in freebsd
Message-ID:  <1233775908.626621.2538.nullmailer@galant.ukfsn.org>
In-Reply-To: <4989E0F7.3020301@mavhome.dp.ua>
References:  <1233365217.00068654.1233354838@10.7.7.3> <4988DCCC.80201@mavhome.dp.ua> <bb4a86c70902031622hdc5231g1c9ce33f17842a1e@mail.gmail.com> <4988EBAC.3080202@mavhome.dp.ua> <1233760229.131312.504.nullmailer@galant.ukfsn.org> <4989E0F7.3020301@mavhome.dp.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Feb 2009, Alexander Motin wrote:

> Iain Hibbert wrote:
> > On Wed, 4 Feb 2009, Alexander Motin wrote:
> >
> > > One more minor fact. Unlike rfcomm_pppd I haven't found an option to run
> > > btpand in foreground to track connection status.
> >
> > what would you like to accomplish?
>
> For example, to initiate reconnect on connection failure. Sure it can be done
> in many other ways, but running in foreground seems to be usual practice for
> many places, like ppp.
>
> > I made some effort for it to not detach until the setup is complete, but
> > it kind of needs to then in order for 'connection up' activities to
> > commence (eg proceeding to run dhclient)..  at least on my machine I have
> > logging turned up and do get some shutdown messages on the console when it
> > detaches.
>
> I think dhclient, for example, could be run via devd when interface comes up,
> alike to normal Ethernet. Not sure TAP supports devd not, but I think it could
> be fixed.

One thing that I have in mind is to make btpand shutdown the tap interface
when exiting (as it marks it up when starting). Would that make it
possible to use devd to trigger a reconnect if desired?  I think its
better to have a "event->action" model rather than hang it all together
with scripts.

iain



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1233775908.626621.2538.nullmailer>