summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-eth.h
blob: 8fe2d0c8c0a53cbd42b16271f68a62481005f4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* 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__

#include <epan/conversation.h>

typedef struct _eth_hdr {
	address dst;
	address src;
	uint16_t type;
	uint32_t stream;  /* track conversations */
} eth_hdr;

/* conversations related struct */
struct eth_analysis {

    /* Initial frame starting this conversation
     */
    uint32_t initial_frame;

    uint32_t stream;
};


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, int payload_offset);

WS_DLL_PUBLIC struct eth_analysis *get_eth_conversation_data(conversation_t *conv,
                                  packet_info *pinfo);

#endif