From cb91e6efc151b8dc22e1359a4c942900dcb5a44c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 24 Sep 2008 09:44:08 -0700 Subject: [PATCH] Avoid assertion failure connecting to unsupported remove OpenFlow host. After increasing the length of an OpenFlow buffer, we need to update the length in the OpenFlow header. --- lib/vconn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vconn.c b/lib/vconn.c index ee7f67868..f287bfd4b 100644 --- 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); -- 2.43.0