Revision 80be5642 mininet/util.py

View differences:

mininet/util.py
141 141
    return _colonHex( mac, 6 )
142 142

  
143 143
def ipStr( ip ):
144
    """Generate IP address string
144
    """Generate IP address string from an unsigned int
145 145
       ip: unsigned int of form x << 16 | y << 8 | z
146 146
       returns: ip address string 10.x.y.z """
147 147
    hi = ( ip & 0xff0000 ) >> 16

Also available in: Unified diff