Review Board 2.0.15


params.py: enhance IpAddress param handling

Review Request #803 - Created July 20, 2011 and submitted

Information
Steve Reinhardt
gem5
Reviewers
Default
ali, gblack, nate, stever
params.py: enhance IpAddress param handling

Print IpAddress params in dot notation for readability.
Properly compare IpAddress objects (by value and not object identity).
Also fix up derived param classes (IpNetmask and IpWithPort)
similarly.
a tad
Review request changed
Updated (July 21, 2011, 4:30 a.m.)

Change Summary:

Updated to use Ali's shorter brute-force byte offset list.
Fixed bug where comparison with inappropriate strings caused a ValueError
rather than just returning False.
Extended to handle IpAddress subclasses too.

Description:

   

params.py: enhance IpAddress param handling

   
   

Print IpAddress params in dot notation for readability.

~   Properly compare IpAddress objects (by value and not object identity).

  ~ Properly compare IpAddress objects (by value and not object identity).
  + Also fix up derived param classes (IpNetmask and IpWithPort)
  + similarly.

Ship it!
Posted (July 21, 2011, 4:51 a.m.)