【问题标题】:Weird IPv4 Representation with Leading zero(s)?带有前导零的奇怪 IPv4 表示?
【发布时间】:2015-11-13 19:40:15
【问题描述】:

编写一个小型验证器和 IPv4 字符串表示解析器,我想知道那里是否有像 127.000.000.001 这样的 IP 表示?我知道这很奇怪,但毕竟似乎是合法的 IP 表示。

【问题讨论】:

    标签: network-programming ip ipv4


    【解决方案1】:

    是的。它可能会发生here's an example

    问题是,IP 中的前导零有时可以mean that the IP is written in octal

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-05
      • 1970-01-01
      • 2021-09-20
      • 1970-01-01
      • 1970-01-01
      • 2010-09-13
      相关资源
      最近更新 更多