in reply to Re: Extract source and destination IP from Sniffer::HTTP???
in thread Extract source and destination IP from Sniffer::HTTP???
my $sniffer = Sniffer::HTTP->new( callbacks => { request => sub { my ($req,$conn) = @_;}, response => sub { my ($res,$req,$conn) = @_;}, log => sub { print $_[0] if $VERBOSE }, tcp_log => sub { print $_[0] if $VERBOSE > 1 }, }, timeout => 5*60, # seconds after which a connection is considered stal +e stale_connection => sub { my ($s,$conn,$key); if ($key){ print "Connection stalled .... $key ....\n" if $d +ebug; $s->log->("Connection $key is stale."); $s->remove_connection($key); } }, ); $sniffer->run($interface);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extract source and destination IP from Sniffer::HTTP???
by zwon (Abbot) on Feb 15, 2009 at 01:28 UTC | |
by Corion (Patriarch) on Feb 15, 2009 at 08:53 UTC | |
by zwon (Abbot) on Feb 15, 2009 at 10:18 UTC | |
by perlpreben (Beadle) on Feb 15, 2009 at 12:50 UTC | |
by perlpreben (Beadle) on Feb 15, 2009 at 14:26 UTC |