lib/ofpbuf.c
/* Creates and returns a new ofpbuf that initially contains a copy of the
 * 'buffer->size' bytes of data starting at 'buffer->data' with no headroom or
 * tailroom. */
Creates and returns a new ofpbuf that initially contains a copy of the
'buffer->size' bytes of data starting at 'buffer->data' with no headroom or
tailroom.
Creates and returns a new ofpbuf that initially contains a copy of the ' buffer - > size ' bytes of data starting at ' buffer - > data ' with no headroom or tailroom .
struct ofpbuf *
ofpbuf_clone(const struct ofpbuf *buffer)
{
    return ofpbuf_clone_with_headroom(buffer, 0);
}
struct ofpbuf * ofpbuf_clone ( const struct ofpbuf * buffer ) { return ofpbuf_clone_with_headroom ( buffer , 0 ) ; }
Creates and returns a new ofpbuf that initially contains a copy of the
 'buffer->size' bytes of data starting at 'buffer->data' with no headroom or
 tailroom.
Creates and returns a new ofpbuf that initially contains a copy of the ' buffer - > size ' bytes of data starting at ' buffer - > data ' with no headroom or tailroom .