rnithyanand / dpkt

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

netflow bug #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. wrong count value in netflow header

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

netflow record size is 48 bytes.
The count value in netflow header is a number of records.
For example, if there is 1 record, the count is 1.
But the dpkt shows 48. 

What version of the product are you using? On what operating system?

version: dpkt-1.6.tar.gz
os: linux (centos, ubuntu)

Please provide any additional information below.

in netflow.py file,
line 24,

self.count = len(self.data)
==> self.count = len(self.data) / 48

Original issue reported on code.google.com by Choonho....@gmail.com on 21 Jan 2011 at 6:36