Why does telnet not return -EINVAL for IP Address 0.x.x.x anymore?

Solution In Progress - Updated -

Issue

  • When trying to telnet a port to a 0.x.x.x IP address ,the kernel will check the if the IP Address is valid or not, instantly returning an error. However, on RHEL 9.1 the same telnet command will just try to make a connect regardless.

Using 0.1.1.1 as an example.

  • RHEL8
$ telnet 0.1.1.1
Trying 0.1.1.1...
telnet: connect to address 0.1.1.1: Invalid argument
  • RHEL9
$ telnet 0.1.1.1
Trying 0.1.1.1...
telnet: connect to address 0.1.1.1: Connection timed out

Environment

  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content