[ovs-dev] [PATCH 1/2] flow: Fill in ->l7 in flow_compose().
Ben Pfaff
blp at nicira.com
Mon Sep 30 21:47:56 UTC 2013
flow_extract() fills in ->l7 but flow_compose() wasn't doing it, which
confused bfd_process_packet() when invoked via the ofproto/trace appctl
command.
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
lib/flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/flow.c b/lib/flow.c
index 0678c6f..7372e3b 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -1032,6 +1032,7 @@ flow_compose(struct ofpbuf *b, const struct flow *flow)
icmp->icmp_code = ntohs(flow->tp_dst);
icmp->icmp_csum = csum(icmp, ICMP_HEADER_LEN);
}
+ b->l7 = ofpbuf_tail(b);
}
ip = b->l3;
--
1.7.10.4
More information about the dev
mailing list