net_interface_private: added receive queue and splited device reading from packet processing. Delivering to self no longer is executed in the sender's context, which had some problems with TCP's locking.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21214 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-05-23 07:55:54 +00:00
parent 7e4dc23a7e
commit a1deb55ef5
6 changed files with 133 additions and 54 deletions
@@ -345,6 +345,8 @@ create_buffer(size_t headerSpace)
buffer->flags = 0;
buffer->size = 0;
buffer->type = -1;
return buffer;
}
@@ -378,6 +380,7 @@ copy_metadata(net_buffer *destination, const net_buffer *source)
destination->offset = source->offset;
destination->size = source->size;
destination->protocol = source->protocol;
destination->type = source->type;
}