netflow: Avoid (theoretically) looping 2**32 times.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 19:45:24 +0000 (12:45 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 6 Oct 2010 00:01:32 +0000 (17:01 -0700)
commitf22a24b7b3b8aec61f6778bf9c8e6e7c5514039a
treed76f35f2311235f8a062a098a713de53d0f7b3d3
parent92428253d585ccdc9eeb628d4c2c6aac30ad9336
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