Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-eth.h
1/* packet-eth.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <[email protected]>
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
15typedef struct _eth_hdr {
16 address dst;
17 address src;
18 uint16_t type;
19 uint32_t stream; /* track conversations */
20} eth_hdr;
21
22/* conversations related struct */
24
25 /* Initial frame starting this conversation
26 */
27 uint32_t initial_frame;
28
29 uint32_t stream;
30};
31
32
33void 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
37WS_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:43
Definition proto.h:903
Definition conversation.h:224
Definition packet-eth.h:23
Definition stream.c:41
Definition tvbuff-int.h:35