From: BZ Benny <bennybbz@yahoo.fr>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Adresse resolution in BlueZ
Date: Wed, 16 Mar 2005 11:21:29 +0100 (CET) [thread overview]
Message-ID: <20050316102129.28080.qmail@web26610.mail.ukl.yahoo.com> (raw)
In-Reply-To: 6667
Hi Marcel,
Excuse me if I wasn't precise.
I know that the BD_ADDR is the MAC address it is
explained in the BNEP spec. and when I do ifconfig
bnep0 i see in the MAC address feild the BD_ADDR.
When we conect tow bluetooth devices with a PAN
connection, we use ifconfig to affect an IP address
for both our PC.
The IP address is in the IP layer.When the tcp stack
send an IP frame in the IP headers we find the IP
address of the sender and the IP address of the dst.
when BNEP receive this IP frame it needs to build its
BNEP headers. The BNEP header cantains (not in
ETHERNET_COMPRESSED) the BD_ADDR of the dst and the
src. BNEP needs to convert the IP address into
BD_ADDR.
So BNEP ask IP for such a thing. This BD_ADDR is
stored in an ARP table. the ARP table is in the IP
layer. The ARP table contains for any known IP address
its related BD_ADDR (or MAC address as you want).
If this IP isn't known like when we begin a conection
the IP layer send an ARP resolution request asking
which device owns this IP address. The device it have
this IP address reply with " this Ip address is owne
by this BD_ADDR"
so the IP layer store this BD_ADRR in this ARP table.
you can see that with #tcpdump -i bnep0.
The ARP protocol is explained here.
http://www.ietf.org/rfc/rfc826.txt.
Actually this is the protocol between the IP layer and
the Ethernet layer. Since the BNEP have to replace the
Ethernet layer, I wanted to know how is implemented
address resolution in BNEP. Exactly how BNEP ask IP
for getting the BD_ADDR stored in the ARP table.
regards
Benny
--- Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Benny,
>
> > But, How could bnep build its bnep frame. BNEP
> receive
> > frome TCP/IP the IP address of the peer device.
> And
> > she needs to convert this IP adresse into a MAC
> > address so it needs to ask for the MAC adresse in
> the
> > ARP tables in the IP layer.
> > isn't it?
>
> the MAC address of the virtual network card is the
> BD_ADDR. Both are
> part of the IEEE address range and they will never
> overlap.
>
> Regards
>
> Marcel
>
>
>
>
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
>
Découvrez nos promotions exclusives "destination de la Tunisie, du Maroc, des Baléares et la Rép. Dominicaine sur Yahoo! Voyages :
http://fr.travel.yahoo.com/promotions/mar14.html
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next reply other threads:[~2005-03-16 10:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 10:21 BZ Benny [this message]
2005-03-16 10:37 ` [Bluez-users] Adresse resolution in BlueZ Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2005-03-17 16:14 BZ Benny
2005-03-17 16:56 ` Marcel Holtmann
2005-03-17 9:20 BZ Benny
2005-03-17 10:27 ` Marcel Holtmann
2005-03-16 9:40 BZ Benny
2005-03-16 9:47 ` Marcel Holtmann
2005-03-16 9:28 BZ Benny
2005-03-16 9:32 ` Marcel Holtmann
2005-03-09 16:28 BZ Benny
2005-03-09 18:00 ` 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=20050316102129.28080.qmail@web26610.mail.ukl.yahoo.com \
--to=bennybbz@yahoo.fr \
--cc=bluez-users@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).