|There's more than one way to do things|
Making Network packetsby admiralfreezbee (Acolyte)
|on Sep 14, 2005 at 15:50 UTC||Need Help??|
admiralfreezbee has asked for the
wisdom of the Perl Monks concerning the following question:
I need to make a data packet to send over a network. All I need is the data the placing in an UDP packet is no problem. The layout of the message is
ID (1 byte) | TransID (3 bytes)
Option_ID (2 bytes) | Option_length (2 bytes)
IP_address (16 bytes)
If anyone is wondering it's a DHCPv6 reply message.
I guess I need to do this with pack but my experience with Perl is very limited. Can anyone help me?