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
-
src/python/m5/params.py (Diff revision 1) -
Should other object have operators for comparison? Should we have something that's in a superclass?
-
src/python/m5/params.py (Diff revision 1) -
Is this clearer than [24,16,8,0]?
Review request changed
Updated (July 21, 2011, 4:27 a.m.)
Diff: |
Revision 2 (+47 -10) |
|---|
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: |
|
|---|
