in reply to converting tcpdump output

can you possibly post some output? or maybe it would help to print out some of the values to debug it, for example just print $client, just print $host, just print $&, etc.

Replies are listed 'Best First'.
Re^2: converting tcpdump output
by RnC (Sexton) on May 16, 2005 at 02:18 UTC
    
    root@iceblue:~# perl sn
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 1024 bytes
    192.168.0.249 -> 209.197.123.153        GET /ind P.......GET./ind
    192.168.0.249 -> 209.197.123.153        GET /ind P...`...GET./ind
    192.168.0.249 -> 209.197.123.153        GET /ind P...X...GET./ind
    192.168.0.249 -> 209.197.123.153        GET /ima P.......GET./ima
    192.168.0.249 -> 209.197.79.97          GET /i/p P.......GET./i/p
    192.168.0.249 -> 66.39.54.27            GET /ima P...;...GET./ima
    
    
    

    Thanks again.