Skip to content

Latest commit

 

History

History
202 lines (165 loc) · 7.39 KB

ChangeLog.creole

File metadata and controls

202 lines (165 loc) · 7.39 KB

Revision history

November 4, 2016


  • Renaming MyStats class to avoid confusion
  • Making myStats global variable so we can print stats when terminating with signal
  • Fixing small bug in quiet_ping() preventing in from ever exiting.

November 3, 2016


  • Converting quiet and verbose ping functions to generator so we can do infinite ping. All the work was done by Ariana Giroux. #14

November 3, 2016


  • Adding exception when sending packets to handle socket.error (Python2.x issue) Thanks to Ariana Giroux #16
  • Fixing MyStats printing.

November 2, 2016


November 2, 2016


  • Updating Authors
  • Fixing up function names as suggested by EclectickMedia #13

October 26, 2016


  • PEP8 Stuff
  • Code clean up
  • Remove revision history from ping.py

October 25, 2016


  • New unittest (tests.py) thanks to EclectickMedia
  • Switching .iteritems() to .items() in icmp_messages.py for better competability (thanks to Steve Clement)
  • Small fixes

October 24, 2016


  • Python 3 competability
  • Fixing small bug (verbose ping printing)

February 4, 2015


January 21, 2015


August 6, 2014


  • Fixing an bug introduced with last changes :S - Python on Windows dosn't have socket.inet_ntop Adding try/except to handle AttributeError.

June 30, 2014


  • Forgot to add stuff to this README :p

June 29, 2014


  • Some small PIP8 stuff...

June 19, 2013


  • Added support for IPv6. Taken from implementation of Lars Strand.

March 19, 2013


  • Fixing bug to prevent divide by 0 during run-time.

January 26, 2012


  • Fixing BUG #4 - competability with python 2.x [tested with 2.7] - Packet data building is different for 2.x and 3.x. 'cose of the string/bytes difference.
  • Fixing BUG #10 - the multiple resolv issue. - When pinging domain names insted of hosts (for exmaple google.com) you can get different IP every time you try to resolv it, we should resolv the host only once and stick to that IP.
  • Fixing BUGs #3 #10 - Doing hostname resolv only once.
  • Fixing BUG #14 - Removing all 'global' stuff. - You should not use globul! Its bad for you...and its not thread safe!
  • Fix - forcing the use of different times on linux/windows for more accurate mesurments. (time.time - linux/ time.clock - windows)
  • Adding quiet_ping function - This way we'll be able to use this script as external lib.
  • Changing default timeout to 3s. (1second is not enought)
  • Switching data syze to packet size. It's easyer for the user to ignore the fact that the packet headr is 8b and the datasize 64 will make packet with

Oct. 17, 2011


Oct. 12, 2011


Merge sources and create a seperate github repository:

Add a simple CLI interface.

September 12, 2011


  • Bugfixes + cleanup by Jens Diemer Tested with Ubuntu + Windows 7

September 6, 2011


  • Cleanup by Martin Falatic. Restored lost comments and docs. Improved functionality: constant time between pings, internal times consistently use milliseconds. Clarified annotations (e.g., in the checksum routine). Using unsigned data in IP & ICMP header pack/unpack unless otherwise necessary. Signal handling. Ping-style output formatting and stats.

August 3, 2011


  • Ported to py3k by Zach Ware. Mostly done by 2to3; also minor changes to deal with bytes vs. string changes (no more ord() in checksum() because >source_string< is actually bytes, added .encode() to data in send_one_ping()). That's about it.

March 11, 2010


  • changes by Samuel Stauffer: replaced time.clock with default_timer which is set to time.clock on windows and time.time on other systems.

November 8, 2009


  • Improved compatibility with GNU/Linux systems.
  • Changes in this release: Re-use time.time() instead of time.clock(). The 2007 implementation worked only under Microsoft Windows. Failed on GNU/Linux. time.clock() behaves differently under the two OSes.

May 30, 2007


little rewrite by Jens Diemer:

  • change socket asterisk import to a normal import
  • replace time.time() with time.clock()
  • delete "return None" (or change to "return" only)
  • in checksum() rename "str" to "source_string"

December 4, 2000


  • Changed the struct.pack() calls to pack the checksum and ID as unsigned. My thanks to Jerome Poincheval for the fix.

November 22, 1997


  • Initial hack. Doesn't do much, but rather than try to guess what features I (or others) will want in the future, I've only put in what I need now.

December 16, 1997

For some reason, the checksum bytes are in the wrong order when this is run under Solaris 2.X for SPARC but it works right under Linux x86. Since I don't know just what's wrong, I'll swap the bytes always and then do an htons().