bug-inetutils
[Top][All Lists]
Advanced

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

[bug-inetutils] ping: Discard single octets as host name.


From: Mats Erik Andersson
Subject: [bug-inetutils] ping: Discard single octets as host name.
Date: Sat, 27 Nov 2010 19:23:48 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello again,

there is an old bug report [1] filed with Debian, which makes much sense.
It is a wish that the call

    ping 10

should return an error, since no host can consist of a single octet,
and neither is an IPv4 address with initial octet 0 possible.

The following patch addresses this natural behaviour, which the default
`ping' of Debian GNU/Linux also complies with. I have by intention left
an outer conditional in place, which while not strictly necessary,
improves the readability of the code intentions.


Best regards,
Mats


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323165

Attachment: 0001-ping-Discard-single-octets-as-host-name.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

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