summaryrefslogtreecommitdiff
path: root/ofproto/netflow.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-11-09 17:10:27 -0800
committerJustin Pettit <jpettit@nicira.com>2011-11-10 18:03:04 -0800
commiteadef313296eac5c2fa99bc1d7a32e514a7989bf (patch)
tree505f7cdd370f7f8c53fa8536a6ad2af417d2a3fd /ofproto/netflow.c
parent58828b08f0f8b5a2ea5b88b06f48eb1db83b0938 (diff)
downloadopenvswitch-eadef313296eac5c2fa99bc1d7a32e514a7989bf.tar.gz
Prepend "nw_" to "frag" and "tos" elements.
Most of the members in structures referring to network elements indicate the layer (e.g., "tl_", "nw_", "tp_"). The "frag" and "tos" members didn't, so this commit add them.
Diffstat (limited to 'ofproto/netflow.c')
-rw-r--r--ofproto/netflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/netflow.c b/ofproto/netflow.c
index 89ccb3b2f..bf2e62871 100644
--- a/ofproto/netflow.c
+++ b/ofproto/netflow.c
@@ -160,7 +160,7 @@ gen_netflow_rec(struct netflow *nf, struct netflow_flow *nf_flow,
}
nf_rec->tcp_flags = nf_flow->tcp_flags;
nf_rec->ip_proto = expired->flow.nw_proto;
- nf_rec->ip_tos = expired->flow.tos & IP_DSCP_MASK;
+ nf_rec->ip_tos = expired->flow.nw_tos & IP_DSCP_MASK;
/* NetFlow messages are limited to 30 records. */
if (ntohs(nf_hdr->count) >= 30) {