Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
register-int.h File Reference
#include "register.h"

Go to the source code of this file.

Functions

void register_all_protocols (register_cb cb, void *client_data)
 
void register_all_protocol_handoffs (register_cb cb, void *client_data)
 
unsigned long register_count (void)
 

Detailed Description

Definitions for protocol registration

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ register_all_protocol_handoffs()

void register_all_protocol_handoffs ( register_cb  cb,
void *  client_data 
)

Call each dissector's protocol handoff routine.

Each routine is called from a worker thread. Registration routines might call any number of routines which are not thread safe, such as wmem_alloc. Callbacks should handle themselves accordingly.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "proto_reg_handoff_XXX".
client_dataData pointer for the callback.

◆ register_all_protocols()

void register_all_protocols ( register_cb  cb,
void *  client_data 
)

Call each dissector's protocol registration routine.

Each routine is called in alphabetical order from a worker thread. Registration routines might call any number of routines which are not thread safe, such as wmem_alloc. Callbacks should handle themselves accordingly.

Parameters
cbCallback routine which is called for each protocol. Messages have the format "proto_register_XXX".
client_dataData pointer for the callback.