From: "Rob Taft" <rtaft@sensis.com>
To: <cijoml@volny.cz>, <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] DHCPD and Bluetooth
Date: Wed, 12 May 2004 16:23:12 -0400 [thread overview]
Message-ID: <00ac01c4385e$f6aed230$80c8fea9@Perigee.Perigeellc.com> (raw)
In-Reply-To: 200405122103.08265.cijoml@volny.cz
hotplug is installed. I added some lines to /etc/hotplug/usb/bluefw to
verify that it is getting executed, but it never does. Nor does it get
executed when I type "hotplug usb" or "hotplug usb/bluefw"
Secondly, it seems to me that the hotplug scripts supposed to be called when
a hardware device is connected. This is not my issue. I am trying to get a
Windows (or any OS) Client to connect to a Linux Server via Bluetooth. When
there is nothing connected to the server, bnep0 is not listed in ifconfig.
Now I've managed to get it to automatically assign an IP to the Server's
Bluetooth when a Client connects by creating
/etc/sysconfig/network-scripts/ifcfg-bnep0 with the following data:
DEVICE=bnep0
ONBOOT=yes
USERCTL=no
PEERDNS=no
IPADDR=192.168.3.1
NETMASK=255.255.255.0
BROADCAST=192.168.3.255
This solves half my problem..setting the IP of bnep0 when a client connects,
since the IP is lost when the client disconnects.
The other half of the problem is the DHCP server. Once the client
disconnects from the server, bnep0 drops the IP, and DHCP no longer serves
IP's for it. When a new client connects, I need the DHCP server to begin
serving bnep0 again. One way to do it is to restart the DHCP server, but if
I take that approach, I need to know when the client connets so I can
restart it. I don't think hotplug is what I am looking for since it is
hardware connection based.
Rob
----- Original Message -----
From: "Michal Semler" <cijoml@volny.cz>
To: <bluez-users@lists.sourceforge.net>
Sent: Wednesday, May 12, 2004 3:03 PM
Subject: Re: [Bluez-users] DHCPD and Bluetooth
> On Wednesday 12 of May 2004 19:55, Rob Taft wrote:
> > Changing my OS isn't exactly an option at this point.
>
> All distributions have hotplug scripts inside. Just use you package system
and
> install it
>
> Michal
>
> > ----- Original Message -----
> > From: Mykel
> > To: Rob Taft
> > Cc: bluez-users@lists.sourceforge.net
> > Sent: Wednesday, May 12, 2004 12:44 PM
> > Subject: Re: [Bluez-users] DHCPD and Bluetooth
> >
> >
> > I know Slackware has hotplug scripts. You might want to look there.
> >
> > Myke
> >
> >
> > Rob Taft wrote:
> > I currently have a setup where I have a Bluetooth adapter on a Linux
> > box, and one on Windows. Everything is configured properly. I connect
> > from the Windows Bluetooth adapter to the Linux one via "Local Area
> > Connection 2" in XP over TCP/IP. I manually type "ifconfig bnep0
> > 192.168.3.1" to assign the adapter an IP, then I have to restart DHCPD
to
> > acquire an IP address over Bluetooth. This all works great.
> >
> > My first question is: Is there a way to recognize when a connection
is
> > made, so I can create a script or some code to automatically set bnep0
to
> > 192.168.3.1 and restart the dhcp server?
> >
> > I only have 2 Bluetooth adapters. What if I used a 3rd from windows
to
> > connect to Linux at the same time another one is connected. Will it
allow
> > multiple connections? Will it show up as bnep1 or still use bnep0?
> >
> >
> >
> > Rob Taft, Software Engineer
> > Perigee, A Division of Sensis Corporation
> > rtaft@sensis.com
> > 315-453-7842, Ext. 25
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver
> higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2004-05-12 20:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 16:07 [Bluez-users] DHCPD and Bluetooth Rob Taft
2004-05-12 16:44 ` Mykel
2004-05-12 17:55 ` Rob Taft
2004-05-12 19:03 ` Michal Semler
2004-05-12 20:23 ` Rob Taft [this message]
2004-05-12 20:57 ` Pavel Ruzicka
2004-05-12 21:27 ` Rob Taft
2004-05-12 21:47 ` Achim Bohnet
2004-05-13 12:24 ` Rob Taft
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='00ac01c4385e$f6aed230$80c8fea9@Perigee.Perigeellc.com' \
--to=rtaft@sensis.com \
--cc=bluez-users@lists.sourceforge.net \
--cc=cijoml@volny.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox