2000-02-15 21:06:58 +00:00
|
|
|
/* packet-eth.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_ETH_H__
|
|
|
|
#define __PACKET_ETH_H__
|
|
|
|
|
2003-01-22 01:18:03 +00:00
|
|
|
typedef struct _eth_hdr {
|
2003-08-23 09:09:35 +00:00
|
|
|
address dst;
|
|
|
|
address src;
|
2003-01-22 01:18:03 +00:00
|
|
|
guint16 type;
|
|
|
|
} eth_hdr;
|
|
|
|
|
2002-08-02 23:36:07 +00:00
|
|
|
void capture_eth(const guchar *, int, int, packet_counts *);
|
2000-08-11 13:37:21 +00:00
|
|
|
|
2010-06-19 01:16:29 +00:00
|
|
|
void add_ethernet_trailer(packet_info *pinfo, proto_tree *tree, proto_tree *fh_tree,
|
2007-12-16 00:35:34 +00:00
|
|
|
int trailer_id, tvbuff_t *tvb, tvbuff_t *trailer_tvb,
|
|
|
|
int fcs_len);
|
2003-08-21 21:05:30 +00:00
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#endif
|