Hi Fabrice,

The syntax is:

  type = 16-bit unsigned, network (big-endian) byte order
  length = 16-bit unsigned, network (big-endian) byte order
  value = arbitrary binary string (remove trailing nulls and ASCII spaces)

I have some ruby code where I do parse it with unpack:

  type, lenght, value =  avpairs['http-tlv'].unpack('nnA*')

I'm not sure, but think that the "nnA*" pattern can also be used with the Perl 
unpack function.

Regards,
Ricardo

To: [email protected]
From: [email protected]
Date: Mon, 13 Jun 2016 20:13:30 -0400
Subject: Re: [PacketFence-users] User-agent from Radius Accounting


  
    
  
  
    Hello Ricardo,

    

    If you are using web-auth then you will probably have access to
    theses attributes but when i checked that sooner this year and the
    http-tlv and dhcp-tlv were a little bit weird, like i got a sort of
    random chars before the real useragent/dhcp info.

    

    I don't know if you have an example (debug) of a radius packet that
    contain these attributes (maybe it has been fixed and we can
    probably do something).

    

    Regards

    Fabrice

    

    

    Le 2016-06-13 17:01, Ricardo Duarte a
      écrit :

    
    
      
      Hi there,
        

        
        Most of my clients never hit the registration portal, as
          they are being autoreg. But I
            still would like to get info about the user-agent.
        One way to do it, for Cisco devices, is to read it from
          Radius Accounting packets. It is sent inside a av-pair,
          http-tlv.
        So, I wonder if there us any integration point where I can
          have access to the Radius accounting packets and write the
          info to the node table?
        

        
        Thanks,
        Ricardo
      
      

      
      

      
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
      

      
      

      _______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

    
    

  


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users                  
                  
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to