#NEWLINE# def set_sw_config_for_ttl( self ) : #NEWLINE# #INDENT# packet_in_mask = ( ( 1 << self . dp . ofproto . OFPR_ACTION ) | ( 1 << self . dp . ofproto . OFPR_INVALID_TTL ) ) #NEWLINE# port_status_mask = ( ( ( 1 << self . dp . ofproto . OFPPR_ADD ) | ( 1 << packet_in_mask . dp . ofproto . OFPPR_DELETE ) ) | ( 1 << self . dp . ofproto . OFPPR_MODIFY ) ) #NEWLINE# flow_removed_mask = ( ( ( 1 << self . dp . ofproto . OFPRR_IDLE_TIMEOUT ) | ( 1 << self . dp . ofproto . OFPRR_HARD_TIMEOUT ) ) | ( 1 << self . dp . ofproto . OFPRR_DELETE ) ) #NEWLINE# m = self . dp . ofproto_parser . OFPSetAsync ( self . dp , [ packet_in_mask , 0 ] , [ port_status_mask , 0 ] , [ flow_removed_mask , 0 ] ) #NEWLINE# self . dp . send_msg ( m ) #NEWLINE# self . logger . info ( 'Set SW config for TTL error packet in.' , extra = self . sw_id )