#include <stdlib.h>
#include "dynamic-string.h"
#include "ofpbuf.h"
-
-#define THIS_MODULE VLM_dhcp
#include "vlog.h"
+VLOG_DEFINE_THIS_MODULE(dhcp);
+
/* Information about a DHCP argument type. */
struct arg_type {
const char *name; /* Name. */
{
struct ofpbuf b;
- b.data = data;
- b.size = size;
+ ofpbuf_use_const(&b, data, size);
for (;;) {
uint8_t *code, *len;
void *payload;