2000-02-15 21:06:58 +00:00
|
|
|
/* packet-eth.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_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;
|
|
|
|
|
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
|