#NEWLINE# def print_ipv4_event( cpu , data , size ) : #NEWLINE# #INDENT# event = ct . cast ( data , ct . POINTER ( Data_ipv4 ) ) . contents #NEWLINE# print ( ( '%-8s %-6d %-2d %-20s %1s> %-20s %s' % ( strftime ( '%H:%M:%S' ) , event . pid , event . ip , ( '%s:%s' % ( inet_ntoa ( event . saddr ) , event . lport ) ) , type [ event . type ] , ( '%s:%s' % ( inet_ntoa ( event . daddr ) , event . dport ) ) , tcpstate [ event . state ] ) ) )