home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!sol.ctr.columbia.edu!eff!ckd
- From: ckd@eff.org (Christopher Davis)
- Subject: TCP/IP packet disassembly code?
- Message-ID: <CKD.93Jan25191720@loiosh.eff.org>
- Sender: usenet@eff.org (NNTP News Poster)
- Nntp-Posting-Host: loiosh.eff.org
- Organization: Electronic Frontier Foundation Tech Central
- Date: Tue, 26 Jan 1993 00:17:23 GMT
- Lines: 8
-
- Has anyone written perl code to disassemble a TCP/IP packet? (Assume it's
- been pack()ed into a scalar already.) Given the variable-sized headers,
- you'd need to get the IP header length, use that to get the TCP header
- length, then build an unpack() template based on that. If the wheel's
- already been invented, I'd rather not; if not, I'll probably do it this
- week (time permitting :) and post it here for posterity or whatever.
- --
- * Christopher Davis * <ckd@eff.org> * <ckd@kei.com> * [CKD1] * MIME * RIPEM *
-