*/
#include <config.h>
-#include "ofpbuf.h"
+#include "openvswitch/ofpbuf.h"
#include <stdlib.h>
#include <string.h>
-#include "dynamic-string.h"
+#include "openvswitch/dynamic-string.h"
#include "netdev-dpdk.h"
#include "util.h"
b->source = source;
b->header = NULL;
b->msg = NULL;
- list_poison(&b->list_node);
+ ovs_list_poison(&b->list_node);
}
static void
new_buffer->header = (char *) new_buffer->data + header_offset;
}
- new_buffer->msg = b->msg;
+ if (b->msg) {
+ ptrdiff_t msg_offset = (char *) b->msg - (char *) b->data;
+
+ new_buffer->msg = (char *) new_buffer->data + msg_offset;
+ }
return new_buffer;
}