After increasing the length of an OpenFlow buffer, we need to update the
length in the OpenFlow header.
error->type = htons(OFPET_HELLO_FAILED);
error->code = htons(OFPHFC_INCOMPATIBLE);
ofpbuf_put(b, s, strlen(s));
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);
retval = do_send(vconn, b);
if (retval) {
ofpbuf_delete(b);