diff options
author | Florin Coras <fcoras@cisco.com> | 2019-06-26 16:27:13 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-07-05 17:49:39 +0000 |
commit | 3ffe6cadf083d1a0bc32e4a37d56b42a1153ff7b (patch) | |
tree | f9862c7b06e7a817a2fede8b4ca5419c5f2e5545 /src/vnet/interface.h | |
parent | 1cfcb78940580c8e3645fca0419d32f9286e942d (diff) |
sctp: move to plugins, disabled by default
Removed sctp buffer metadata from vnet/buffer.h, added it to the
plugin. Add registration APIs for plugin-based vlib_buffer_opaque /
opaque2 decoders, used by "pcap dispatch trace ..." for display in the
wireshark dissector.
Type:refactor
Not actively maintained.
Change-Id: Ie4cb6ba66f68b3b3a7d7d2c63c917fdccf994371
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r-- | src/vnet/interface.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h index d5497f5cc91..c6400ce6978 100644 --- a/src/vnet/interface.h +++ b/src/vnet/interface.h @@ -809,6 +809,9 @@ typedef struct u32 *split_buffers; } vnet_interface_per_thread_data_t; +typedef u8 *(*vnet_buffer_opquae_formatter_t) (const vlib_buffer_t * b, + u8 * s); + typedef struct { /* Hardware interfaces. */ @@ -847,6 +850,10 @@ typedef struct u32 pcap_pkts_to_capture; uword *pcap_drop_filter_hash; + /* Buffer metadata format helper functions */ + vnet_buffer_opquae_formatter_t *buffer_opaque_format_helpers; + vnet_buffer_opquae_formatter_t *buffer_opaque2_format_helpers; + /* per-thread data */ vnet_interface_per_thread_data_t *per_thread_data; @@ -880,6 +887,12 @@ uword vnet_interface_output_node (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame); +void vnet_register_format_buffer_opaque_helper + (vnet_buffer_opquae_formatter_t fn); + +void vnet_register_format_buffer_opaque2_helper + (vnet_buffer_opquae_formatter_t fn); + #endif /* included_vnet_interface_h */ /* |