rnithyanand / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Contents of the pkt is cut #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

file_in=open('C:\snooperPort.pcap','rb')
for ts, pkt in dpkt.pcap.Reader(file_in):
    eth = dpkt.ethernet.Ethernet(pkt)
    ip = eth.data
    tcp = ip.data
    data = tcp.data
    print data
    print len(pkt)

What is the expected output? What do you see instead?

I expected the file "print expected" attached, but I saw the file "print 
watched steps above" attached.

What version of the product are you using? On what operating system?
dkpt-1.8, python 2.7. Win 8.1 (eclipse IDE)

Please provide any additional information below.

Why the packets that I am seeing is been cutted with 1506 of length?

I would like to get whole packet with all xml. After that I will parse it.

best regards,

Original issue reported on code.google.com by vinifa...@gmail.com on 12 Nov 2014 at 8:17

Attachments: