net::rawip source code question

Hello!
I'm a total newbie in perl. I examined some scripts where the net::rawip
module
was used. What does the following mean ?

$s = new Net::RawIP;
$filter = "ip proto \\tcp and src host $daddr and src port $dport";
$pcap = $a->pcapinit($device,$filter,1500,60);
....

So I'm trouble with the $filter line. (daddr = destination address,
dport=destination port).
Please explain this to me! Thanks in advance,
regards,
august
August Reno [ So, 08 Januar 2006 21:39 ] [ ID #1132741 ]

Re: net::rawip source code question

In article <dprt9m$4fh$1 [at] namru.matavnet.hu>, August Reno
<a_reno [at] tiscali.it> wrote:

> Hello!
> I'm a total newbie in perl. I examined some scripts where the net::rawip
> module
> was used. What does the following mean ?
>
> $s = new Net::RawIP;
> $filter = "ip proto \\tcp and src host $daddr and src port $dport";
> $pcap = $a->pcapinit($device,$filter,1500,60);
> ...
>
> So I'm trouble with the $filter line. (daddr = destination address,
> dport=destination port).
> Please explain this to me! Thanks in advance,
> regards,
> august
>
>

I answered the same question you posted on comp.lang.perl.modules.
Please do not multi-post.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jim Gibson [ Mo, 09 Januar 2006 20:25 ] [ ID #1134262 ]
Perl » alt.perl » net::rawip source code question

Vorheriges Thema: Mutex and Semaphore
Nächstes Thema: Reference of table of hask