projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24bd9b
)
Avoid assertion failure connecting to unsupported remove OpenFlow host.
author
Ben Pfaff
<blp@nicira.com>
Wed, 24 Sep 2008 16:44:08 +0000
(09:44 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 24 Sep 2008 16:44:08 +0000
(09:44 -0700)
After increasing the length of an OpenFlow buffer, we need to update the
length in the OpenFlow header.
lib/vconn.c
patch
|
blob
|
history
diff --git
a/lib/vconn.c
b/lib/vconn.c
index ee7f678689eb9b58e1394f332cba238fc012d293..f287bfd4b9ee21f13d76e2f9ab49aed0156bbf71 100644
(file)
--- a/
lib/vconn.c
+++ b/
lib/vconn.c
@@
-372,6
+372,7
@@
vcs_send_error(struct vconn *vconn)
error->type = htons(OFPET_HELLO_FAILED);
error->code = htons(OFPHFC_INCOMPATIBLE);
ofpbuf_put(b, s, strlen(s));
+ update_openflow_length(b);
retval = do_send(vconn, b);
if (retval) {
ofpbuf_delete(b);