in reply to Can IO::Socket get/set TOS/ECN ?
In terms of receiving or capturing packets and retaining lower level information, the Net::Pcap module is exceptionally effective at this task - Using this module it is quite easy to manually pull packets about and examine their contents. There is an introductory tutorial which I wrote for this module on this site here and examples of usage at:
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000000011"))'
|
|---|