ofpbuf: New function ofpbuf_use_const().
[sliver-openvswitch.git] / lib / dhcp.c
index 0345efe..62ede06 100644 (file)
@@ -561,8 +561,7 @@ parse_options(struct dhcp_msg *msg, const char *name, void *data, size_t size,
 {
     struct ofpbuf b;
 
-    b.data = data;
-    b.size = size;
+    ofpbuf_use_const(&b, data, size);
     for (;;) {
         uint8_t *code, *len;
         void *payload;