Re: Reg. Net::Pcap

2004-03-01 Thread Balaji Thoguluva
ways I could solve this problem is to catch packets separately from 2 interfaces and then merge the files by timestamp values in to a single value. Is there any other way? Thanks, Balaji WC -Sx- Jones <[EMAIL PROTECTED]> wrote: Balaji Thoguluva wrote: > Hi, > I would

Reg. Net::Pcap

2004-03-01 Thread Balaji Thoguluva
Hi, I would like to know if Net::Pcap::open_live($dev, $snaplen, $promisc, $to_ms, \$err)) method can take 'any' as value for $dev argument. My intention is to catch packets that come on all network interfaces of a computer (atleast I want from eth0 and lo, loopback interface). I have also

Reg. Net::Pcap open_live method

2004-02-28 Thread Balaji Thoguluva
Hi, I would like to know if Net::PCap::open_live() method can take 'any' as value for $dev argument. My intention is to catch packets that come on all network interfaces of a computer (especially on eth0 and lo, loopback interface). The prototype of open_live is Net::Pcap::open_live($dev,

Reg. 'repeated pattern' matching

2004-02-25 Thread Balaji Thoguluva
Hi, I have a question on pattern matching. Assume I have a line like this consisting of header field(via) and values(IPaddress) repeated like below via: 192.168.6.100; via:192.168.6.101; via: 203.290.89.90; ..so on I would like to know how many via: header field occur and to get each

Reg. Net::Pcap

2004-02-21 Thread Balaji Thoguluva
Hi, I would like to know if there is a way to get packets from already saved tcpdump output file (tcpdump -w DumpFile.dmp) using Net::Pcap library and thus parse each packet. I know that there is a function Net::Pcap::open_offline() that takes a savefile as input. But the savefile

Flushing FileHandle's Buffer

2004-02-17 Thread Balaji Thoguluva
Hi, I would like to know if there is a function(other than close FILEHANDLE) to flush current filehandle's buffer data to the file. In otherwords, I want to make sure the following PRINT statement to work immediately after its execution. print FILEHANDLE "Flush this data IMMEDIATELY to the fil

Reg. length of anonymous array

2004-02-12 Thread Balaji Thoguluva
Hi, I am a novice to perl programming. I have a reference to a hash with a hash key as a reference to an anonymous array. For clarity, I have something like this structure my $rhash = { $rarray => [ ], }; I would like to know the length of

Reg. string matching using reg-exp

2004-02-06 Thread Balaji Thoguluva
Hi, I am a novice to perl programming. When I execute the following code, I get always "No Match". I guess my reg-exp is correct. I also tried changing $line= "INVITE sip:[EMAIL PROTECTED] SIP/2.0"; to have double quotes and a backslash char before @ symbol. Even then it gives me No Match.

How to Implement a BNF syntax in perl?

2004-02-06 Thread Balaji Thoguluva
Hi, I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this Response = Status-line *(message-header) CRLF [Message-body] status-Line = SIP-Version SP Status-Code SP Reason-Ph