udp: send should return the error on the last send packet

checked against the output of the test sortix/os-test/udp/connect-send-error-send
* icmp: add more error codes

Change-Id: I7b1695d37cf5eae8cd09132047404b990f8791dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9394
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2025-06-26 05:43:59 +00:00
parent f8e01ad15c
commit 74be257edf
4 changed files with 125 additions and 18 deletions
+11
View File
@@ -31,6 +31,17 @@ enum net_error {
B_NET_ERROR_UNREACH_PROTOCOL,
B_NET_ERROR_UNREACH_PORT,
B_NET_ERROR_MESSAGE_SIZE,
B_NET_ERROR_UNREACH_SOURCE_FAIL,
B_NET_ERROR_UNREACH_NET_UNKNOWN,
B_NET_ERROR_UNREACH_HOST_UNKNOWN,
B_NET_ERROR_UNREACH_ISOLATED,
B_NET_ERROR_UNREACH_NET_PROHIBITED,
B_NET_ERROR_UNREACH_HOST_PROHIBITED,
B_NET_ERROR_UNREACH_NET_TOS,
B_NET_ERROR_UNREACH_HOST_TOS,
B_NET_ERROR_UNREACH_FILTER_PROHIBITED,
B_NET_ERROR_UNREACH_HOST_PRECEDENCE,
B_NET_ERROR_UNREACH_PRECEDENCE_CUTOFF,
B_NET_ERROR_TRANSIT_TIME_EXCEEDED,
B_NET_ERROR_REASSEMBLY_TIME_EXCEEDED,
B_NET_ERROR_PARAMETER_PROBLEM,