<s> from libs . module import * <EOL> class mod_firewall ( CANModule ) : <EOL> name = "<STR_LIT>" <EOL> help = """<STR_LIT>""" <EOL> id = <NUM_LIT:4> <EOL> _active = True <EOL> version = <NUM_LIT:1.0> <EOL> def do_effect ( self , can_msg , args ) : <EOL> if can_msg . CANData : <EOL> if '<STR_LIT>' in args and can_msg . CANFrame . frame_id in args . get ( '<STR_LIT>' , [ ] ) : <EOL> can_msg . CANData = False <EOL> self . dprint ( <NUM_LIT:2> , "<STR_LIT>" + str ( can_msg . CANFrame . frame_id ) + "<STR_LIT>" + str ( <EOL> can_msg . bus ) + "<STR_LIT:)>" ) <EOL> elif '<STR_LIT>' in args and can_msg . CANFrame . frame_id not in args . get ( '<STR_LIT>' , [ ] ) : <EOL> can_msg . CANData = False <EOL> self . dprint ( <NUM_LIT:2> , "<STR_LIT>" + str ( can_msg . CANFrame . frame_id ) + "<STR_LIT>" + str ( <EOL> can_msg . bus ) + "<STR_LIT:)>" ) <EOL> if '<STR_LIT>' in args and can_msg . CANFrame . frame_data not in args . get ( '<STR_LIT>' , [ ] ) : <EOL> can_msg . CANData = False <EOL> self . dprint ( <NUM_LIT:2> , "<STR_LIT>" + str ( can_msg . CANFrame . frame_id ) + "<STR_LIT>" + str ( <EOL> can_msg . bus ) + "<STR_LIT:)>" ) <EOL> elif '<STR_LIT>' in args and can_msg . CANFrame . frame_data in args . get ( '<STR_LIT>' , [ ] ) : <EOL> can_msg . CANData = False <EOL> self . dprint ( <NUM_LIT:2> , "<STR_LIT>" + str ( can_msg . CANFrame . frame_id ) + "<STR_LIT>" + str ( <EOL> can_msg . bus ) + "<STR_LIT:)>" ) <EOL> return can_msg </s>
