Skip to content

Strict 模式下的 Ping Error 的 Bug #1

@leonardodalinky

Description

@leonardodalinky

不知道我是否理解出错。
对 Ping Error 的检验逻辑中,因为 ping 的是无效地址(192.168.2.3),因此不会收到回复包。
但在 strict_mode == True 的情况下,会判定结果的 seq 序列错误,而事实上其并无 seq 的属性。
希望改进 test_ping 函数中的逻辑。
运行结果如下:

client ping 192.168.2.3
Icmp Seq not correct!
PING 192.168.2.3 (192.168.2.3) 56(84) bytes of data.

--- 192.168.2.3 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3065ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions