Re: Question regarding nested WiMAX TLV formatting

2011-02-04 Thread Alan DeKok
Adrien Demarez wrote:
 I wish to deploy FreeRadius on a WiMAX setup, ...

  Lots of people do this, I'm not sure why. :(

 INSERT INTO `radgroupreply` (`id`, `groupname`, `attribute`, `op`, `value`) 
 VALUES
 (1, 'Gold', 'WiMAX-Packet-Flow-Descriptor-v2', ':=', '??')
 (2, 'Gold', 'WiMAX-PFDv2-Packet-Data-Flow-Id', ':=', '1') # inside the first 
 one

  Now.  You just specify WiMAX-PFDv2-Packet-Data-Flow-Id, an the server
will Do The Right Thing.

  The server *knows* that it's a TLV, and will pack the attributes
appropriately.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Question regarding nested WiMAX TLV formatting

2011-02-03 Thread Adrien Demarez
Dear all,

I wish to deploy FreeRadius on a WiMAX setup, and I need a modern version of 
FreeRadius in order to use WiMAX-Packet-Flow-Descriptor-v2 and nested TLVs 
(according to http://freeradius.1045715.n5.nabble.com/Sub-TLV-s-td3336559.html, 
I should use the git/2.2 version of FreeRadius - which I did compile and run 
successfully). My question is about how to configure/describe/format the nested 
TLVs in the reply (not in the dictionary), either in the users file or in the 
MySQL tables (e.g. in radgroupreply). Indeed, in the following example : how 
can I express the fact that the WiMAX-PFDv2-Packet-Data-Flow-Id attribute is 
*inside* the WiMAX-Packet-Flow-Descriptor-v2 ? what should I put in the value 
field for WiMAX-Packet-Flow-Descriptor-v2, since the real value is 
constituted by the following TLVs ? How can I say end-tlv at some point so 
that the Some-other-attribute is no longer inside 
WiMAX-Packet-Flow-Descriptor-v2 but is at the root level ?

INSERT INTO `radgroupreply` (`id`, `groupname`, `attribute`, `op`, `value`) 
VALUES
(1, 'Gold', 'WiMAX-Packet-Flow-Descriptor-v2', ':=', '??')
(2, 'Gold', 'WiMAX-PFDv2-Packet-Data-Flow-Id', ':=', '1') # inside the first one
...
(100, 'Gold', 'Some-other-attribute', ':=', 'foobar')

Best regards,

--
Adrien Demarez

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html