lib/dp-packet.c
/* Reserves 'size' bytes of headroom so that they can be later allocated with
 * dp_packet_push_uninit() without reallocating the dp_packet. */
Reserves 'size' bytes of headroom so that they can be later allocated with
dp_packet_push_uninit() without reallocating the dp_packet.
Reserves ' size ' bytes of headroom so that they can be later allocated with dp_packet_push_uninit () without reallocating the dp_packet .
void
dp_packet_reserve(struct dp_packet *b, size_t size)
{
    ovs_assert(!dp_packet_size(b));
    dp_packet_prealloc_tailroom(b, size);
    dp_packet_set_data(b, (char*)dp_packet_data(b) + size);
}
void dp_packet_reserve ( struct dp_packet * b , size_t size ) { ovs_assert ( ! dp_packet_size ( b ) ) ; dp_packet_prealloc_tailroom ( b , size ) ; dp_packet_set_data ( b , ( char * ) dp_packet_data ( b ) + size ) ; }
Reserves 'size' bytes of headroom so that they can be later allocated with
 dp_packet_push_uninit() without reallocating the dp_packet.
Reserves ' size ' bytes of headroom so that they can be later allocated with dp_packet_push_uninit () without reallocating the dp_packet .