Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-ethercat-frame.h
1 /* paket-ethercat-frame.h
2  *
3  * Copyright (c) 2007 by Beckhoff Automation GmbH
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 #ifndef _PACKET_ETHERCAT_FRAME_H
12 #define _PACKET_ETHERCAT_FRAME_H
13 
14 #include <ws_diag_control.h>
15 
16 /* structure for decoding the header -----------------------------------------*/
17 DIAG_OFF_PEDANTIC
18 typedef union _EtherCATFrameParser
19 {
20  struct
21  {
22  guint16 length : 11;
23  guint16 reserved : 1;
24  guint16 protocol : 4;
25  } v;
26  guint16 hdr;
27 } EtherCATFrameParserHDR;
28 DIAG_ON_PEDANTIC
29 typedef EtherCATFrameParserHDR *PEtherCATFrameParserHDR;
30 
31 #define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR)
32 
33 #endif /* _PACKET_ETHERCAT_FRAME_H */
Definition: packet-ethercat-frame.h:19