2000-02-15 21:06:58 +00:00
|
|
|
/* packet-llc.h
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-02-15 21:06:58 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2000-02-15 21:06:58 +00:00
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __PACKET_LLC_H__
|
|
|
|
#define __PACKET_LLC_H__
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2009-05-05 03:50:06 +00:00
|
|
|
extern const value_string sap_vals[];
|
|
|
|
|
2001-01-10 09:07:35 +00:00
|
|
|
void dissect_snap(tvbuff_t *, int, packet_info *, proto_tree *,
|
|
|
|
proto_tree *, int, int, int, int, int);
|
|
|
|
|
2003-08-28 01:29:16 +00:00
|
|
|
/*
|
2003-09-03 06:27:03 +00:00
|
|
|
* Add an entry for a new OUI.
|
2003-08-28 01:29:16 +00:00
|
|
|
*/
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC
|
2016-03-13 11:51:45 +00:00
|
|
|
void llc_add_oui(guint32, const char *, const char *, hf_register_info *, const int);
|
2003-08-28 01:29:16 +00:00
|
|
|
|
2009-05-05 03:50:06 +00:00
|
|
|
/*
|
|
|
|
* SNAP information about the PID for a particular OUI:
|
|
|
|
*
|
|
|
|
* the dissector table to use with the PID's value;
|
|
|
|
* the field to use for the PID.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
dissector_table_t table;
|
|
|
|
hf_register_info *field_info;
|
|
|
|
} oui_info_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Return the oui_info_t for the PID for a particular OUI value, or NULL
|
|
|
|
* if there isn't one.
|
|
|
|
*/
|
|
|
|
oui_info_t *get_snap_oui_info(guint32);
|
2002-11-05 22:50:42 +00:00
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#endif
|