network/stack: Add clone_ancillary_data.

Change-Id: I98a56344ffbf0c691a797ad7ce69ba1de08bbbee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9859
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2025-11-15 22:30:45 +00:00
parent 646294695d
commit 8dcdf257f9
5 changed files with 54 additions and 2 deletions
+3
View File
@@ -175,6 +175,7 @@ struct net_stack_module_info {
status_t (*add_ancillary_data)(ancillary_data_container* container,
const ancillary_data_header* header, const void* data,
void (*destructor)(const ancillary_data_header*, void*),
void (*clone)(const ancillary_data_header*, void*),
void** _allocatedData);
status_t (*remove_ancillary_data)(ancillary_data_container* container,
void* data, bool destroy);
@@ -182,6 +183,8 @@ struct net_stack_module_info {
ancillary_data_container* to);
void* (*next_ancillary_data)(const ancillary_data_container* container,
void* previousData, ancillary_data_header* _header);
status_t (*clone_ancillary_data)(const ancillary_data_container* from,
ancillary_data_container* to);
};