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

hex output for RADIUS packet

by !unlike (Beadle)
on Sep 23, 2003 at 10:42 UTC ( [id://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"?

cheers

!unlike

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);

      Thanks!

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

      Cheers

      !unlike

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found