lib/dp-packet.c
/* Creates and returns a new dp_packet with an initial capacity of 'size +
 * headroom' bytes, reserving the first 'headroom' bytes as headroom. */
Creates and returns a new dp_packet with an initial capacity of 'size +
headroom' bytes, reserving the first 'headroom' bytes as headroom.
Creates and returns a new dp_packet with an initial capacity of ' size + headroom ' bytes reserving the first ' headroom ' bytes as headroom .
struct dp_packet *
dp_packet_new_with_headroom(size_t size, size_t headroom)
{
    struct dp_packet *b = dp_packet_new(size + headroom);
    dp_packet_reserve(b, headroom);
    return b;
}
struct dp_packet * dp_packet_new_with_headroom ( size_t size , size_t headroom ) { struct dp_packet * b = dp_packet_new ( size + headroom ) ; dp_packet_reserve ( b , headroom ) ; return b ; }
Creates and returns a new dp_packet with an initial capacity of 'size +
 headroom' bytes, reserving the first 'headroom' bytes as headroom.
Creates and returns a new dp_packet with an initial capacity of ' size + headroom ' bytes reserving the first ' headroom ' bytes as headroom .