Publisher review:icmplib is a library for creating and reading ICMP packets. The Packet class is what is used to create and read ICMP packets. To create a packet you instantiate the class, set the header and data fields, and then call the create() method which will the string representation that can be passed to a socket. To read a packet, use the Packet.parse() classmethod, which will return an instance of Packet with the fields filled out. To show its use you can also see the ping() method that is included. Just use the code as a script and pass in an address to ping. Response time is printed to stdout. Raw sockets tend to require root permissions on the process. Thus you might need to use sudo to execute the Python interpreter to make this all work. ping() does drop sudo permissions as soon as it can, though, for security reasons.
icmplib 1.0 is a Python script for Python Modules scripts design by Brett Cannon.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
icmplib is a library for creating and reading ICMP packets.
Operating system:Windows / Linux / Mac OS / BSD / Solaris