Params: Add parameter types for IP addresses in various forms.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 23 Nov 2010 20:54:43 +0000 (15:54 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 23 Nov 2010 20:54:43 +0000 (15:54 -0500)
commitb3de4855c3dba9df80cca4540c4ee6625c26f9e1
tree28f1876bd2d31904d1f3d4bdbde4ac6def7207a1
parent40d434d5516affffe9ded9365e0d2da060aa7c78
Params: Add parameter types for IP addresses in various forms.

New parameter forms are:
IP address in the format "a.b.c.d" where a-d are from decimal 0 to 255.
IP address with netmask which is an IP followed by "/n" where n is a netmask
length in bits from decimal 0 to 32 or by "/e.f.g.h" where e-h are from
decimal 0 to 255 and which is all 1 bits followed by all 0 bits when
represented in binary. These can also be specified as an integral IP and
netmask passed in separately.
IP address with port which is an IP followed by ":p" where p is a port index
from decimal 0 to 65535. These can also be specified as an integral IP and
port value passed in separately.
src/base/inet.cc
src/base/inet.hh
src/python/m5/params.py
src/python/m5/util/convert.py
src/python/swig/inet.i