bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICMPv4 Type 3 Code 13 not implemented


From: Simon Josefsson
Subject: Re: ICMPv4 Type 3 Code 13 not implemented
Date: Thu, 26 Jan 2023 11:08:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Erik Auerswald <auerswal@unix-ag.uni-kl.de> 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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]