Revision 1052f8a0

View differences:

mininet/link.py
297 297
                  ( [ '%s delay' % delay ] if delay is not None else [] ) +
298 298
                  ( [ '%s jitter' % jitter ] if jitter is not None else [] ) +
299 299
                  ( ['%d%% loss' % loss ] if loss is not None else [] ) +
300
                  ( [ 'ECN' ] if enable_ecn  else [ 'RED' ]
300
                  ( [ 'ECN' ] if enable_ecn else [ 'RED' ]
301 301
                    if enable_red else [] ) )
302 302
        info( '(' + ' '.join( stuff ) + ') ' )
303 303

  
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