lathspell has asked for the wisdom of the Perl Monks concerning the following question:
> #!/usr/bin/perl -W > use Net::RawIP; > use Data::Dumper; > > sub pcap_recv_callback { > $recv_rawip = new Net::RawIP({'udp' => {}}); > $recv_rawip->bset($_[2], 14); > printf("ip protocol=%d\n", $recv_rawip->get({'ip' => ['protocol' +]})); > } > > my $rawip = new Net::RawIP(); > my $pcap = $rawip->pcapinit('lo', 'dst port 68', 1500, 300); > > my @temp; > loop($pcap, 1, \&pcap_recv_callback, \@temp);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PCAP filter does not work
by Khen1950fx (Canon) on Dec 29, 2007 at 06:30 UTC | |
by lathspell (Initiate) on Dec 29, 2007 at 17:06 UTC |