lib/dp-packet.c
/* Prefixes 'size' bytes to the head end of 'b', reallocating and copying its
 * data if necessary.  Returns a pointer to the first byte of the data's
 * location in the dp_packet.  The new data is left uninitialized. */
Prefixes 'size' bytes to the head end of 'b', reallocating and copying its
data if necessary.  Returns a pointer to the first byte of the data's
location in the dp_packet.  The new data is left uninitialized.
Prefixes ' size ' bytes to the head end of ' b ' reallocating and copying its data if necessary . Returns a pointer to the first byte of the data ' s location in the dp_packet . The new data is left uninitialized .
void *
dp_packet_push_uninit(struct dp_packet *b, size_t size)
{
    dp_packet_prealloc_headroom(b, size);
    dp_packet_set_data(b, (char*)dp_packet_data(b) - size);
    dp_packet_set_size(b, dp_packet_size(b) + size);
    return dp_packet_data(b);
}
void * dp_packet_push_uninit ( struct dp_packet * b , size_t size ) { dp_packet_prealloc_headroom ( b , size ) ; dp_packet_set_data ( b , ( char * ) dp_packet_data ( b ) - size ) ; dp_packet_set_size ( b , dp_packet_size ( b ) + size ) ; return dp_packet_data ( b ) ; }
Prefixes 'size' bytes to the head end of 'b', reallocating and copying its
 data if necessary.
Prefixes ' size ' bytes to the head end of ' b ' reallocating and copying its data if necessary .