in reply to Raw Sockets
(Edit: Net::RawIP rather than Net-RawIP, thanks tadman!)
I have not tried any of these packages, but they are interfaces to libpcap (and may also work with WinPcap -- I don't yet know.)