diff options
Diffstat (limited to 'epan/dissectors/packet-eth.h')
-rw-r--r-- | epan/dissectors/packet-eth.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/epan/dissectors/packet-eth.h b/epan/dissectors/packet-eth.h index 76684288..8fe2d0c8 100644 --- a/epan/dissectors/packet-eth.h +++ b/epan/dissectors/packet-eth.h @@ -10,14 +10,31 @@ #ifndef __PACKET_ETH_H__ #define __PACKET_ETH_H__ +#include <epan/conversation.h> + typedef struct _eth_hdr { address dst; address src; - guint16 type; + 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 fcs_len, int payload_offset); + +WS_DLL_PUBLIC struct eth_analysis *get_eth_conversation_data(conversation_t *conv, + packet_info *pinfo); #endif |