If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > Reading from one particular pattern to other specific pattern from a file in perl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-09, 01:39
datta.tarun datta.tarun is offline
Registered User
 
Join Date: Apr 2009
Posts: 1
Reading from one particular pattern to other specific pattern from a file in perl

Hi,

I have been trying to implement a logic in follwong file where we start to read from Frame 196 to Frame 197 in a file. If we found Frame 197 we should stop and search for a required pattern. If we found that pattern then we should exit from loop.If we are not able to find a pattern then in next iteration we should be reading from Frame 197 to Frame 198 not from start of a file.Please help me out on this issue.


Frame 196 (14 bytes on wire, 14 bytes captured)
Arrival Time: Apr 9, 2009 16:19:07.918481826
Time delta from previous packet: 0.000316620 seconds
Time since reference or first frame: 29.761285782 seconds
Frame Number: 196
Packet Length: 14 bytes
Capture Length: 14 bytes
Protocols in frame: wlan
IEEE 802.11
Data Rate: 1.0 Mb/s
Channel: 11
Signal Strength: 74%
Type/Subtype: Acknowledgement (29)
Frame Control: 0x00D4 (Normal)
Version: 0
Type: Control frame (1)
Subtype: 13
Flags: 0x0
DS status: Not leaving DS or network is operating in AD-HOC mode (To DS: 0 From DS: 0) (0x00)
.... .0.. = More Fragments: This is the last fragment
.... 0... = Retry: Frame is not being retransmitted
...0 .... = PWR MGT: STA will stay up
..0. .... = More Data: No data buffered
.0.. .... = Protected flag: Data is not protected
0... .... = Order flag: Not strictly ordered
Duration: 0
Receiver address: Broadcom_90:2c:b3 (00:10:18:90:2c:b3)
Frame check sequence: 0xdf9e77d6 [correct]

Frame 197 (42 bytes on wire, 42 bytes captured)
Arrival Time: Apr 9, 2009 16:19:07.919038772
Time delta from previous packet: 0.000556946 seconds
Time since reference or first frame: 29.761842728 seconds
Frame Number: 197
Packet Length: 42 bytes
Capture Length: 42 bytes
Protocols in frame: wlan
IEEE 802.11
Data Rate: 1.0 Mb/s
Channel: 11
Signal Strength: 77%
Type/Subtype: Authentication (11)
Frame Control: 0x00B0 (Normal)
Version: 0
Type: Management frame (0)
Subtype: 11
Flags: 0x0
DS status: Not leaving DS or network is operating in AD-HOC mode (To DS: 0 From DS: 0) (0x00)
.... .0.. = More Fragments: This is the last fragment
.... 0... = Retry: Frame is not being retransmitted
...0 .... = PWR MGT: STA will stay up
..0. .... = More Data: No data buffered
.0.. .... = Protected flag: Data is not protected
0... .... = Order flag: Not strictly ordered
Duration: 314
Destination address: MarvellS_28:31:7b (00:50:43:28:31:7b)
Source address: Broadcom_90:2c:b3 (00:10:18:90:2c:b3)
BSS Id: Broadcom_90:2c:b3 (00:10:18:90:2c:b3)
Fragment number: 0
Sequence number: 1758
Frame check sequence: 0x0ae7be18 [correct]
IEEE 802.11 wireless LAN management frame
Fixed parameters (6 bytes)
Authentication Algorithm: Open System (0)
Authentication SEQ: 0x0002
Status code: Successful (0x0000)
Tagged parameters (8 bytes)
Vendor Specific: Broadcom
Tag Number: 221 (Vendor Specific)
Tag length: 6
Vendor: Broadcom
Tag interpretation: Not interpreted
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On