in reply to Algorithmic difficulties
Take your example:
Because there can only be one connection from the :1234 port, the connection to 22.22.22.22:80 must be broken before the connection to my.box.ip.addr:80 has been made. On basis of that you get:*snip* from=(111.111.111.111:1234) to=(22.22.22.22:80) *snip* ASCII ... from=(111.111.111.111:1234), localport=(80), *data he +re* *snip* from=(111.111.111.111:1234) to=(my.box.ip.addr:80) *snip* ASCII ... from=(111.111.111.111:1234), localport=(80), *data he +re*
Hope this helps,$_ = <INPUT>; m/.*?\(([\d\.\:]*)\).*?\(([\d\.\:]*)\)(.*)/; ( $2 =~ m/:/ ) && ( $mine{$1} = ($2 eq $mybox) ) ; ( $2 =~ m/^\d+$/ ) && $mine{$1} && print $3;
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
Update: chipmunk pointed to some typos. Thanx! Furthermore, I rewrote line 3, it's cleaner now.
|
|---|