#NEWLINE# def _packetin_tcp_udp( self , msg , header_list ) : #NEWLINE# #INDENT# in_port = self . ofctl . get_packetin_inport ( msg ) #NEWLINE# self . ofctl . send_icmp ( in_port , header_list , self . vlan_id , icmp . ICMP_DEST_UNREACH , icmp . ICMP_PORT_UNREACH_CODE , msg_data = srcip . data ) #NEWLINE# srcip = ip_addr_ntoa ( header_list [ IPV4 ] . src ) #NEWLINE# dstip = ip_addr_ntoa ( header_list [ IPV4 ] . dst ) #NEWLINE# self . logger . info ( 'Receive TCP/UDP from [%s] to router port [%s].' , srcip , dstip , extra = self . sw_id ) #NEWLINE# self . logger . info ( 'Send ICMP destination unreachable to [%s].' , srcip , extra = self . sw_id )