Revision 1052f8a0 mininet/util.py

View differences:

mininet/util.py
252 252
def ipNum( w, x, y, z ):
253 253
    """Generate unsigned int from components of IP address
254 254
       returns: w << 24 | x << 16 | y << 8 | z"""
255
    return  ( w << 24 ) | ( x << 16 ) | ( y << 8 ) | z
255
    return ( w << 24 ) | ( x << 16 ) | ( y << 8 ) | z
256 256

  
257 257
def ipAdd( i, prefixLen=8, ipBaseNum=0x0a000000 ):
258 258
    """Return IP address string from ints

Also available in: Unified diff