summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-eth.h
blob: 76684288eac9802d9b110870034c366042954617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* packet-eth.h
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __PACKET_ETH_H__
#define __PACKET_ETH_H__

typedef struct _eth_hdr {
	address dst;
	address src;
	guint16 type;
} eth_hdr;

void add_ethernet_trailer(packet_info *pinfo, proto_tree *tree, proto_tree *fh_tree,
			  int trailer_id, tvbuff_t *tvb, tvbuff_t *trailer_tvb,
			  int fcs_len);

#endif