PAN Attributes
Hi folks,
Which modification should be done in order to get
NAP/GN attribute values?
I need get the NAP/GN IPv4Subnet attribute from a PANU.
I found following structure in the bluez source code, but I didn't find references!
static struct attrib_def pan_attrib_names[] = {
{ 0x200, "IpSubnet", NULL, 0 }, /* Obsolete ??? */
{ 0x30A, "SecurityDescription", NULL, 0 },
{ 0x30B, "NetAccessType", NULL, 0 },
{ 0x30C, "MaxNetAccessrate", NULL, 0 },
{ 0x30D, "IPv4Subnet", NULL, 0 },
{ 0x30E, "IPv6Subnet", NULL, 0 },
};Thanks in advance,
Claudio.
-------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Claudio,
Quoted 2 lines
Which modification should be done in order to get
NAP/GN attribute values?
to retrieve them from a remote side or to add them to your PAN server?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Marcel,
Currently, I think that PAN attributes are not being exported(registered) at server side. Therefore, I need add to NAP/GN and retrieve from PANU.
I didn't find references for them. "pan_attrib_names" structure is used only in the uuid16_names and at the moment I don't know how change the code to make these information available.
My objective is try enhance/make easy the PAN setup. Currently, the user has to be aware of the PAN role and setup the IP address in both side(master and slave).
In the PAN Profile, Zeroconf is one of suggested standard to solve the IP assigment problem. Zeroconf generates a pseudo random IP. However, this approach is NOT feasible for Bluetooth PAN. For NAP scenario, a route must be added in the PANU to reach the gateway. But the PANU doesn't know the NAP IP address!!!
Using the IPv4Subnet attribute and using a rule for gateway IP assigment the PANU can be able to get the NAP IP. Another aproach is add one attribute like "gateway address", but this implies in PAN profile changes and I think that this is not a simple process.
Regards,
Claudio
Quoted 18 lines · Marcel Holtmann
Hi Claudio,
Quoted 4 lines
Which modification should be done in order to get
NAP/GN attribute values?to retrieve them from a remote side or to add them to your PAN server?
Regards
Marcel
Quoted 11 lines
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Claudio,
Quoted 2 lines
Currently, I think that PAN attributes are not being exported(registered) at server side. Therefore, I need add to NAP/GN and retrieve from PANU.
the pand creates the SDP record if it is executes in server mode.
Quoted 14 lines
I didn't find references for them. "
pan_attrib_names" structure is used only in theuuid16_namesand at the moment I don't know how change the code to make these information available.My objective is try enhance/make easy the PAN setup. Currently, the user has to be aware of the PAN role and setup the IP address in both side(master and slave).
In the PAN Profile, Zeroconf is one of suggested standard to solve the IP assigment problem. Zeroconf generates a pseudo random IP. However, this approach is NOT feasible for Bluetooth PAN. For NAP scenario, a route must be added in the PANU to reach the gateway. But the PANU doesn't know the NAP IP address!!!
Quoted 4 lines
Using the IPv4Subnet attribute and using a rule for gateway IP assigment the PANU can be able to get the NAP IP. Another aproach is add one attribute like "gateway address", but this implies in PAN profile changes and I think that this is not a simple process.
Why don't you create a bridge and put a DHCP server on the bridge interface? This is working fine on my systems.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users