projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netlink: Add functions for working with big-endian attribute values.
[openvswitch]
/
ofproto
/
ofproto-sflow.c
diff --git
a/ofproto/ofproto-sflow.c
b/ofproto/ofproto-sflow.c
index 87abef97b59d7d3cf9539e1460d2af81ecbd9727..801614d231852380aaf54351137d65d118f739c0 100644
(file)
--- a/
ofproto/ofproto-sflow.c
+++ b/
ofproto/ofproto-sflow.c
@@
-517,8
+517,7
@@
ofproto_sflow_received(struct ofproto_sflow *os, struct odp_msg *msg)
actions = (const union odp_action *) (hdr + 1);
/* Get packet payload and extract flow. */
actions = (const union odp_action *) (hdr + 1);
/* Get packet payload and extract flow. */
- payload.data = (union odp_action *) (actions + n_actions);
- payload.size = msg->length - min_size;
+ ofpbuf_use_const(&payload, actions + n_actions, msg->length - min_size);
flow_extract(&payload, 0, msg->port, &flow);
/* Build a flow sample */
flow_extract(&payload, 0, msg->port, &flow);
/* Build a flow sample */