fix usage of net_buffer_t