in reply to assemble/disassemble network packets

Use unpack and getsockopt. Read kernel manpages like getsockopt(2), socket(7), ip(7), raw(7), tcp(7), udp(7) and internet RFCs like RFC 793.

Replies are listed 'Best First'.
Re^2: assemble/disassemble network packets
by nobot (Novice) on Mar 21, 2007 at 05:35 UTC
    Use Net::RawIP to send packets. Use Net::Pcap to get the replies. Use NetPacket::* to disassemble the replies. Read up on the perldoc of each.