Re: ICMPv4 Type 3 Code 13 not implemented
Simon Josefsson via Bug reports for the GNU Internet utilities <[email protected]>
| Newsgroups | gmane.comp.gnu.inetutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Erik Auerswald <[email protected]> writes: > Hi, > > On Sat, Jan 21, 2023 at 04:16:59PM +0000, Marco wrote: >> >> inetutils-telnet doesn't seem to implement ICMPv4 correctly. > > The telnet client does not use ICMP directly. > >> It doesn't print a proper message when ICMPv4 Type 3 Code 13 is being >> received, only "no route to destination". > > When telnet cannot connect to a remote server, it uses perror(3) to > print the error message associated with the failed connect(2) syscall. > The telnet client does not control the contents of that error message. I agree -- although maybe there is a way for telnet to find out the low-level error reason, does someone know what APIs to use? If it is easy to call some other function to get a human readable string explaining the ICMPv4 Type 3 Code 13 reason (when that situation occured) we could print it. /Simon
signature.asc
(application/pgp-signature, 255 B)
-----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCY9JRGBQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFop6hAQDoaVsHlYjTML6nu5szYFKI/o6/u1j2 CrnodjoMYnzQFQD/UXhfN2qZ3hMCHAX5xObZQ+kXtf3PrFrDqCFfbfKoMQQ= =wpyu -----END PGP SIGNATURE-----