1 /* paket-ethercat-frame.h
3 * Copyright (c) 2007 by Beckhoff Automation GmbH
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef _PACKET_ETHERCAT_FRAME_H
12 #define _PACKET_ETHERCAT_FRAME_H
14 #include <ws_diag_control.h>
16 /* structure for decoding the header -----------------------------------------*/
18 typedef union _EtherCATFrameParser
23 uint16_t reserved
: 1;
24 uint16_t protocol
: 4;
27 } EtherCATFrameParserHDR
;
29 typedef EtherCATFrameParserHDR
*PEtherCATFrameParserHDR
;
31 #define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR)
33 #endif /* _PACKET_ETHERCAT_FRAME_H */