ofpbuf: Add ofpbuf_new_with_headroom(), ofpbuf_clone_with_headroom().
authorBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 19:55:38 +0000 (12:55 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Sep 2010 19:55:50 +0000 (12:55 -0700)
commit68efcbec41b0acfd8bb7579a5d38afd71b6daf7c
tree2cfaa4c9688064bd29a01fdb8c588690e80427cd
parentf79cb67e689566cfbf3071e0ac0e29923ada5a97
ofpbuf: Add ofpbuf_new_with_headroom(), ofpbuf_clone_with_headroom().

These new functions simplify an increasingly common usage pattern.

Suggested-by: Jesse Gross <jesse@nicira.com>
lib/dpif-linux.c
lib/dpif-netdev.c
lib/ofpbuf.c
lib/ofpbuf.h
ofproto/pktbuf.c