Skip to content

Sweep functionality documentation request #64

@xalier1

Description

@xalier1

Describe the bug
Ping sweep functionality is disabled unless ping is called with size=None or size=0

To Reproduce
Steps to reproduce the behavior:

  1. Call ping without size=None - ret = ping(ip,sweep_start=10 ,sweep_end=109,timeout=2,match=True)
  2. Use wireshark or equivalent and look at the icmp messages being sent
  3. Observe that payload is all the same size, equivalent to ping being called with size=1
  4. Call ping with size=None - ret = ping(ip,size=None,sweep_start=10 sweep_end=109,timeout=2,match=True)
  5. Use wireshark or equivalent and look at the icmp messages being sent
  6. Observe that payload size is now changing from one icmp request to the next

Expected behavior
It wasn't clear from the documentation that in order to use sweep functionality that ping must be called with size explicitly set to None or 0. Please update the documentation to make this clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions