git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10719d
)
flow: Fill in ->l7 in flow_compose().
author
Ben Pfaff
<blp@nicira.com>
Mon, 30 Sep 2013 21:46:50 +0000
(14:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Sat, 2 Nov 2013 15:13:35 +0000
(08:13 -0700)
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@nicira.com>
lib/flow.c
patch
|
blob
|
history
diff --git
a/lib/flow.c
b/lib/flow.c
index
31fd07c
..
8c336f6
100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-1066,6
+1066,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;