#NEWLINE# def addr_to_int( value ) : #NEWLINE# #INDENT# _ = value . split ( '.' ) #NEWLINE# return ( ( ( ( long ( _ [ 0 ] ) << 24 ) + ( long ( value [ 1 ] ) << 16 ) ) + ( long ( _ [ 2 ] ) << 8 ) ) + long ( _ [ 3 ] ) )