home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / perl / 7983 < prev    next >
Encoding:
Text File  |  1993-01-25  |  938 b   |  20 lines

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