All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Cameron <james.cameron@hp.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] [PATCH] pand/main.c, restore signals for dev-up script
Date: Mon, 28 Jun 2004 19:55:41 +1000	[thread overview]
Message-ID: <20040628095541.GB8871@hp.com> (raw)
In-Reply-To: <1088413518.3774.167.camel@pegasus>

On Mon, Jun 28, 2004 at 11:05:18AM +0200, Marcel Holtmann wrote:
> > Just a quick followup question, now that I've read the net.agent script
> > and the README.Debian in the hotplug package ... doesn't this only
> > address the creation of the bnep0 interface when a Bluetooth dongle is
> > plugged in? [...]
> 
> No. The bnep0 interface is only created when there is a PAN connection
> between two devices. No connection, no network interface.

What I didn't know and have now learned was that pand's creation of the
bnep0 interface is a hotplug event, despite there being no actual
physical action.

I've got it working using net.agent and not using dev-up.  Now the
Debian /etc/network/interfaces file looks like this;

mapping hotplug
	script echo

and I had to create a file so that it would take bnep0 down afterwards;

# touch /etc/hotplug/net.enable


But dev-up is given the peer's Bluetooth device address.  net.agent is not
given this.  Can it be determined from just the interface name?  I could
do a "hcitool con" if I knew what the right hci device number was, but
it seems sensible to have the dev-up script provide the knowledge.

-- 
James Cameron

  reply	other threads:[~2004-06-28  9:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27 13:33 [Bluez-devel] [PATCH] pand/main.c, restore signals for dev-up script James Cameron
2004-06-27 20:06 ` Marcel Holtmann
2004-06-27 23:34   ` James Cameron
2004-06-28  7:44     ` Marcel Holtmann
2004-06-28  8:53       ` James Cameron
2004-06-28  9:05         ` Marcel Holtmann
2004-06-28  9:55           ` James Cameron [this message]
2004-06-28 10:13             ` Marcel Holtmann
2004-06-28 10:19               ` James Cameron
2004-06-28 10:39                 ` Marcel Holtmann
2004-06-28 12:06                   ` James Cameron
2004-06-28 12:54                     ` Marcel Holtmann
2004-06-28 22:48                       ` James Cameron
2004-06-28 23:26                         ` Marcel Holtmann
2004-06-29  5:23                           ` James Cameron
2004-06-29  8:58                             ` Marcel Holtmann
2004-06-29 10:55                               ` James Cameron
2004-06-29 11:26                                 ` Marcel Holtmann
2004-06-30  0:15                                   ` James Cameron
2004-06-30  9:06                                     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040628095541.GB8871@hp.com \
    --to=james.cameron@hp.com \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.