* Added an offset/sequence field to the net_buffer - this can and will be used

by the TCP implementation for its reorder and retransmit queues.
* The ipv4_fragment is no longer needed, as we can use the above field there
  as well - this saves one extra allocation per received fragment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19369 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-11-25 11:29:36 +00:00
parent 7c0541c12f
commit 604d21a600
3 changed files with 65 additions and 58 deletions
+8
View File
@@ -22,6 +22,14 @@ typedef struct net_buffer {
struct sockaddr_storage source;
struct sockaddr_storage destination;
struct net_interface *interface;
union {
struct {
uint16 start;
uint16 end;
} fragment;
uint32 sequence;
uint32 offset;
};
uint32 flags;
uint32 size;
uint8 protocol;