Bases: sts.fingerprints.base.Fingerprint
Fingerprints for openflow messages
-
__init__(field2value)[source]
-
flow_mod_commands = {0: 'add', 1: 'modify', 2: 'modify_strict', 3: 'delete', 4: 'delete_strict'}
-
static from_pkt(pkt)[source]
-
human_str()[source]
-
pkt_type_to_fields = {'ofp_barrier_request': [], 'ofp_packet_in': ['in_port', 'data'], 'ofp_hello': [], 'ofp_flow_stats': [], 'ofp_get_config_reply': [], 'ofp_vendor_header': [], 'ofp_flow_removed': ['match', 'reason', 'priority'], 'ofp_queue_get_config_request': [], 'ofp_flow_stats_request': [], 'ofp_flow_mod': ['command', 'match', 'idle_timeout', 'hard_timeout', 'priority', 'out_port', 'flags', 'actions'], 'ofp_features_reply': ['datapath_id'], 'ofp_stats_reply': ['type', 'flags'], 'ofp_queue_stats_request': [], 'ofp_port_stats_request': [], 'ofp_stats_request': ['type', 'flags'], 'ofp_port_stats': [], 'ofp_vendor': [], 'ofp_get_config_request': [], 'ofp_error': ['type', 'code'], 'ofp_aggregate_stats': [], 'ofp_aggregate_stats_request': [], 'ofp_echo_request': [], 'ofp_port_status': ['reason', 'desc'], 'ofp_set_config': [], 'ofp_queue_stats': [], 'ofp_packet_out': ['data', 'in_port', 'actions'], 'ofp_port_mod': ['port_no', 'config', 'mask', 'advertise'], 'ofp_switch_config': ['flags'], 'ofp_barrier_reply': [], 'ofp_echo_reply': [], 'ofp_desc_stats': [], 'ofp_features_request': [], 'ofp_queue_get_config_reply': []}
-
special_fields = {'command': <function <lambda> at 0x3cb6848>, 'data': <function process_data at 0x3cb65f0>, 'match': <function <lambda> at 0x3cb67d0>, 'actions': <function process_actions at 0x3cb6668>, 'desc': <function <lambda> at 0x3cb6758>}