ofpbuf: New function ofpbuf_clone_data_with_headroom().
authorBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 22:36:16 +0000 (14:36 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 27 Jan 2011 17:26:05 +0000 (09:26 -0800)
commita46c577af5c5855939ca3192a56396e15bebf0f8
tree283fd9a837666e2406b756c859626f08f8d27b30
parent0dce369bdd8bf47895e59277bcbf77b74af20446
ofpbuf: New function ofpbuf_clone_data_with_headroom().

This new function is a simple helper that creates a new ofpbuf with some
initial contents plus a caller-specified amount of headroom.

This will be used in upcoming commits.

Acked-by: Jesse Gross <jesse@nicira.com>
lib/ofpbuf.c
lib/ofpbuf.h