netflow: Avoid (theoretically) looping 2**32 times.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 19:45:24 +0000 (12:45 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Oct 2010 21:31:48 +0000 (14:31 -0700)
commit9ebc44ae8c5940513a8dcc2aab8dcca8aff9d2a2
treed78b29f3847f4da9af25f852886f986eab111aec
parent48f846e66ef06c39228fb1d3f8d8bfd1c695c93d
netflow: Avoid (theoretically) looping 2**32 times.

If the netflow byte counter is UINT64_MAX, or at any rate much larger than
UINT32_MAX, netflow_expire() could loop for a very long time.  This commit
avoids that case.

This is only a theoretical bug fix.  I don't know of any actual bug that
would cause a counter to be that high.
ofproto/netflow.c