| Summary: | ssh 172.10 resolves to ssh 172.0.0.10 | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Raj Kishore Panigrahi <rajkipa> |
| Component: | Miscellaneous | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED INVALID | ||
| Severity: | normal | CC: | dtucker |
| Priority: | P5 | ||
| Version: | 7.3p1 | ||
| Hardware: | 68k | ||
| OS: | Mac OS X | ||
|
Description
Raj Kishore Panigrahi
2016-10-18 14:51:57 AEDT
This is a feature of gethostbyname and earlier gethostbyaddr interfaces: class.hostnum and the 32bit integer equivalent are deprecated but still valid representations of an IP address. Compare: $ telnet 172.10 Trying 172.0.0.10... $ telnet 1.512 Trying 1.0.2.0... $ perl -le 'print 2**31+1' 2147483649 $ telnet 2147483649 Trying 128.0.0.1... If you really want something to complain about, try this: $ telnet 172.010 Trying 172.0.0.8... That all said, it's not something that OpenSSH has anything to do with. Also: hardware=68k? for real? (In reply to Darren Tucker from comment #1) > This is a feature of gethostbyname and earlier gethostbyaddr err, those are both the earlier ones. The current one is getaddrinfo. Looks like this behaviour originated in inet_aton() in 4.2BSD. https://en.wikipedia.org/wiki/Dot-decimal_notation closing resolved bugs as of 8.6p1 release |