For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > January 2006 > net::rawip source code question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author net::rawip source code question
August Reno

2006-01-10, 4:03 am

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


Jim Gibson

2006-01-10, 4:03 am

In article <dprt9m$4fh$1@namru.matavnet.hu>, August Reno
<a_reno@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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com