-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.NetenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsgood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
Spotted in #62559:
On non-Windows the error code in raw-socket Ping code path is translated incorrectly:
runtime/src/libraries/System.Net.Ping/src/System/Net/NetworkInformation/IcmpV4MessageConstants.cs
Line 80 in 57bfe47
return IPStatus.TimeExceeded; runtime/src/libraries/System.Net.Ping/src/System/Net/NetworkInformation/IcmpV6MessageConstants.cs
Lines 79 to 84 in 57bfe47
case IcmpV6TimeExceededCode.HopLimitExceeded: return IPStatus.TimeExceeded; case IcmpV6TimeExceededCode.FragmentReassemblyTimeExceeded: return IPStatus.TtlReassemblyTimeExceeded; default: return IPStatus.TimeExceeded;
(should beTtlExpiredinstead ofTimeExceeded)
In the non-privileged code path running the ping command line utility it will presumably return TimeExceeded without an address. The SendPingToExternalHostWithLowTtlTest outer loop test should be modified accordingly to detect this case.
Metadata
Metadata
Assignees
Labels
area-System.NetenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsgood first issueIssue should be easy to implement, good for first-time contributorsIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors