Guest_imported
New member
- Jan 1, 1970
- 0
Hi all!
The file looks like this (a portion of it):
------------------------------------------------
Packet Number 1
ETH: ====( 60 bytes received on interf
ETH: [ 00:10:b5:e4:c0:bf -> 00:06:2
IP: < SRC = 167.10.10.83 >
IP: < DST = 167.10.10.221 > (ut
TCP: <source port=1292, destination
Packet Number 2
ETH: ====( 188 bytes transmitted on in
ETH: [ 00:06:29:c5:2c:ff -> 00:10:b
IP: < SRC = 167.10.10.221 > (ut
IP: < DST = 167.10.10.83 >
TCP: <source port=23(telnet), desti
TCP: 00000000 2d2d2d2d 2d2d2d2d 2d
TCP: ********
TCP: 00000040 2d2d2d2d 2d2d2d2d 2d
TCP: 00000050 20202020 20202020 20
TCP: 00000060 20202020 20417469 76
TCP: 00000070 61636520 6e612049 6e
TCP: 00000080 20656e31 0d0a
and so on...-------------------------------
What I need to do (and still couldn´t manage to do that) is to get, let´s say, the first two lines of EACH protocol instance. Like, From ETH I need the 1st and 2nd line, from IP I need the 1st and 2nd line and so on...this file will be displayed to end-users, with only the minimum details about a trace on a ETH interface...
Thanks guys!
Jeffo.
The file looks like this (a portion of it):
------------------------------------------------
Packet Number 1
ETH: ====( 60 bytes received on interf
ETH: [ 00:10:b5:e4:c0:bf -> 00:06:2
IP: < SRC = 167.10.10.83 >
IP: < DST = 167.10.10.221 > (ut
TCP: <source port=1292, destination
Packet Number 2
ETH: ====( 188 bytes transmitted on in
ETH: [ 00:06:29:c5:2c:ff -> 00:10:b
IP: < SRC = 167.10.10.221 > (ut
IP: < DST = 167.10.10.83 >
TCP: <source port=23(telnet), desti
TCP: 00000000 2d2d2d2d 2d2d2d2d 2d
TCP: ********
TCP: 00000040 2d2d2d2d 2d2d2d2d 2d
TCP: 00000050 20202020 20202020 20
TCP: 00000060 20202020 20417469 76
TCP: 00000070 61636520 6e612049 6e
TCP: 00000080 20656e31 0d0a
and so on...-------------------------------
What I need to do (and still couldn´t manage to do that) is to get, let´s say, the first two lines of EACH protocol instance. Like, From ETH I need the 1st and 2nd line, from IP I need the 1st and 2nd line and so on...this file will be displayed to end-users, with only the minimum details about a trace on a ETH interface...
Thanks guys!
Jeffo.