network: Add net_buffer::buffer_flags field.

Does not actually break ABI since net_buffer had 3 bytes of padding
remaining unused.

Add the first two constants for this field: L3/L4_CHECKSUM_VALID.
These will indicate when the checksum of the packet is known to be
valid (good/correct).

Change-Id: I155b3ea51d1093e229677cb788a007560ddbd428
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7916
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2024-07-30 14:54:49 +00:00
committed by waddlesplash
parent e864e93949
commit 258ae0c892
2 changed files with 13 additions and 3 deletions
+7
View File
@@ -16,6 +16,12 @@
#define NET_BUFFER_MODULE_NAME "network/stack/buffer/v1"
enum net_buffer_flags {
NET_BUFFER_L3_CHECKSUM_VALID = (1 << 0),
NET_BUFFER_L4_CHECKSUM_VALID = (1 << 1),
};
typedef struct net_buffer {
struct list_link link;
@@ -35,6 +41,7 @@ typedef struct net_buffer {
uint32 msg_flags;
uint32 size;
uint8 protocol;
uint16 buffer_flags;
} net_buffer;
struct ancillary_data_container;