Review Board 2.0.15


Params: Add parameter types for IP addresses in various forms.

Review Request #316 - Created Nov. 17, 2010 and submitted

Information
Gabe Black
gem5
Reviewers
Default
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.

   
Review request changed
Updated (Nov. 20, 2010, 3:40 p.m.)

Description:

   

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. These can also be specified as an
~   integral IP and netmask passed in separately.
  ~ 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.

Diff:

Revision 5 (+352)

Show changes

Posted (Nov. 22, 2010, 2:43 a.m.)



  
src/base/inet.cc (Diff revision 5)
 
 
I don't see how this works. after the first nibble, wont everything be 0?