2000-02-15 21:06:58 +00:00
|
|
|
/* packet-llc.h
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-02-15 21:06:58 +00:00
|
|
|
*
|
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
|
|
|
*
|
2000-02-15 21:06:58 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-02-15 21:06:58 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-02-15 21:06:58 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2000-02-15 21:06:58 +00:00
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __PACKET_LLC_H__
|
|
|
|
#define __PACKET_LLC_H__
|
|
|
|
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_llc(const guchar *, int, int, packet_counts *);
|
2009-05-05 03:50:06 +00:00
|
|
|
|
|
|
|
extern const value_string sap_vals[];
|
|
|
|
|
2005-03-21 03:55:50 +00:00
|
|
|
void capture_snap(const guchar *, int, int, packet_counts *);
|
2000-08-11 13:37:21 +00:00
|
|
|
|
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
|
|
|
*/
|
2005-07-28 07:53:38 +00:00
|
|
|
void llc_add_oui(guint32, const char *, const char *, hf_register_info *);
|
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
|