network: Add net_error_data parameter to error_received.
Same structure as used for error_reply, to contain information (like path MTU or redirect gateway) from the original error packet, so that upper layers don't have to re-parse it. Nothing uses or passes it around at present, but it will be used in the next commits. Change-Id: I38a3dec5506bdcb77a7850294082db7be74dd80f Reviewed-on: https://review.haiku-os.org/c/haiku/+/9399 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
4cf1bb8619
commit
f9a86ebeab
@@ -105,7 +105,7 @@ struct net_protocol_module_info {
|
||||
status_t (*receive_data)(net_buffer* data);
|
||||
status_t (*deliver_data)(net_protocol* self, net_buffer* data);
|
||||
|
||||
status_t (*error_received)(net_error error, net_buffer* data);
|
||||
status_t (*error_received)(net_error error, net_error_data* errorData, net_buffer* data);
|
||||
status_t (*error_reply)(net_protocol* self, net_buffer* cause,
|
||||
net_error error, net_error_data* errorData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user