On Thu, 03 May 2018 14:20:11 +0900,
TJ OConnor wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; utf-8 (quoted-printable)>]
> Hello,
> 
> I have an issue where RYU pcaplib.Writer() isn’t writing full packets. 
> 
> Ive created a RYU PCAP Writer Object as described here. 
> https://github.com/osrg/ryu/blob/master/ryu/lib/pcaplib.py 
> <https://github.com/osrg/ryu/blob/master/ryu/lib/pcaplib.py>
>       self.pcap_writer = pcaplib.Writer(open('mypcap.pcap', 'wb’))
> 
> However, when I tcpdump the resulting pcap, it shows that the packets are all 
> truncated at 62 bytes. 
> I’ve adjusted the snaplen=4294967295 and the issue is still the same. 
> 
> Any suggestions would be greatly appreciated. 
> 
> tcpdump -r mypcap.pcap …
> 
> 23:05:39.948667 IP truncated-ip - 1 bytes missing! ubuntu.65277 > 
> amazonaws.com.https: Flags [P.], seq 317:380, ack 253, win 4096, options 
> [nop,nop,TS val 800045157 ecr 739067198], length 63
> 23:05:39.995833 IP truncated-ip - 1 bytes missing! amazonaws.com.https > 
> ubuntu.65277: Flags [P.], seq 253:316, ack 380, win 1136, options [nop,nop,TS 
> val 739069697 ecr 800045157], length 63
> 

Please check the packets you are passing to pcap_write.write_pkt isn't
truncated.

--
IWAMOTO Toshihiro

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to