diff options
| author | Justin Pettit <jpettit@nicira.com> | 2009-10-06 11:08:31 -0700 |
|---|---|---|
| committer | Justin Pettit <jpettit@nicira.com> | 2009-10-06 11:35:29 -0700 |
| commit | e8b52a913a8fc3d2ef0dae82eda5905668ebfae1 (patch) | |
| tree | 9b8fd29dfe99abc2839a183dfee6fcb4f98e228f /ofproto/netflow.c | |
| parent | 4d678233e981fa319a338f6b0949e9dc625941a4 (diff) | |
| parent | 9e5ce56ddbe26c0fc250ac0b2e030f247689abdc (diff) | |
| download | openvswitch-e8b52a913a8fc3d2ef0dae82eda5905668ebfae1.tar.gz | |
Merge commit 'origin/citrix'
Diffstat (limited to 'ofproto/netflow.c')
| -rw-r--r-- | ofproto/netflow.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 7dd2e0431..7912b4b88 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -221,9 +221,8 @@ netflow_expire(struct netflow *nf, const struct ofexpired *expired) nf_rec->ip_proto = expired->flow.nw_proto; nf_rec->ip_tos = expired->ip_tos; - /* NetFlow messages are limited to 30 records. A length of 1400 - * bytes guarantees that the limit is not exceeded. */ - if (nf->packet.size >= 1400) { + /* NetFlow messages are limited to 30 records. */ + if (ntohs(nf_hdr->count) >= 30) { netflow_run(nf); } } |
