Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-eth.h
1 /* packet-eth.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PACKET_ETH_H__
11 #define __PACKET_ETH_H__
12 
13 #include <epan/conversation.h>
14 
15 typedef struct _eth_hdr {
16  address dst;
17  address src;
18  guint16 type;
19  guint32 stream; /* track conversations */
20 } eth_hdr;
21 
22 /* conversations related struct */
23 struct eth_analysis {
24 
25  /* Initial frame starting this conversation
26  */
27  guint32 initial_frame;
28 
29  guint32 stream;
30 };
31 
32 
33 void add_ethernet_trailer(packet_info *pinfo, proto_tree *tree, proto_tree *fh_tree,
34  int trailer_id, tvbuff_t *tvb, tvbuff_t *trailer_tvb,
35  int fcs_len, int payload_offset);
36 
37 WS_DLL_PUBLIC struct eth_analysis *get_eth_conversation_data(conversation_t *conv,
38  packet_info *pinfo);
39 
40 #endif
Definition: address.h:56
Definition: packet-eth.h:15
Definition: packet_info.h:44
Definition: proto.h:904
Definition: conversation.h:220
Definition: packet-eth.h:23
Definition: stream.c:41
Definition: tvbuff-int.h:35