[ovs-dev] [PATCH v3 11/16] flow: Fill udp_len in flow_compose_l4().
Daniele Di Proietto
diproiettod at vmware.com
Tue May 17 00:56:36 UTC 2016
It will be used by connection tracking tests.
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
---
lib/flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/flow.c b/lib/flow.c
index fbe754a..1417803 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -2206,6 +2206,7 @@ flow_compose_l4(struct dp_packet *p, const struct flow *flow)
udp = dp_packet_put_zeros(p, l4_len);
udp->udp_src = flow->tp_src;
udp->udp_dst = flow->tp_dst;
+ udp->udp_len = htons(l4_len);
} else if (flow->nw_proto == IPPROTO_SCTP) {
struct sctp_header *sctp;
--
2.1.4
More information about the dev
mailing list