Protocol Model
[TOC]
⚠️ This document is incomplete. It was never finalized and contains placeholder text (TBD, ???, “blablabla”). The protocol model is fully described in the code: see
src/mmt_core/private_include/packet_processing.h:352(protocol_struct) andsdk/include/plugin_defs.h(plugin interface).
What is a Protocol
In MMT, a protocol is represented by protocol_t (protocol_struct):
- ID: unique
uint32_t proto_id(src/mmt_core/private_include/packet_processing.h:358) - Name: unique
const char * protocol_name(src/mmt_core/private_include/packet_processing.h:359) - Session support:
int has_session(src/mmt_core/private_include/packet_processing.h:356) - Classification:
mmt_classify_next_t classify_next(src/mmt_core/private_include/packet_processing.h:372) - Data analysis:
mmt_analyser_t data_analyser(src/mmt_core/private_include/packet_processing.h:373) - Attributes: stored in
attributes_mapandattributes_names_map(src/mmt_core/private_include/packet_processing.h:375-376)
See Add New Protocol for the workflow to register a new protocol.