Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

hex output for RADIUS packet

by !unlike (Beadle)
on Sep 23, 2003 at 10:42 UTC ( #293449=perlquestion: print w/replies, xml ) Need Help??

!unlike has asked for the wisdom of the Perl Monks concerning the following question:

Hello there my pot bellied, balding bretheren,

I am currently trying to investigate a problem with a RADIUS server. To solve this problem the server's admin has requested I send the RADIUS packet data in a hex format.

Unfortunately Net::Radius::Packet does not have a method that will allow me to do this. The method dump() just prints that RADIUS packet in plain text and pack() returns it in a format ready to send to a server/client, but it is not in a hex format.

A google search and "Super Search" have not discolvered anything of use. Nor have my attempts at producing the hex output from the Net::Radius::Packet object.

Is there any amoungst you who can help me on this path of "enlightenment"?



I write my Perl code like how I like my sex: fast and dirty. ;)

Replies are listed 'Best First'.
Re: hex output for RADIUS packet
by Anonymous Monk on Sep 23, 2003 at 10:52 UTC
    print unpack("H*", $packet);


      I tend not to dabble with pack/unpack and so forget its existance, let alone it usefulness!



      I write my Perl code like how I like my sex: fast and dirty. ;)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://293449]
Approved by gmax
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2023-05-28 13:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found