Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-ethercat-frame.h
1/* packet-ethercat-frame.h
2 *
3 * Copyright (c) 2007 by Beckhoff Automation GmbH
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
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 -----------------------------------------*/
17DIAG_OFF_PEDANTIC
23{
24 struct
25 {
26 uint16_t length : 11;
27 uint16_t reserved : 1;
28 uint16_t protocol : 4;
29 } v;
30 uint16_t hdr;
31} EtherCATFrameParserHDR;
32DIAG_ON_PEDANTIC
33
35typedef EtherCATFrameParserHDR *PEtherCATFrameParserHDR;
36
37
39#define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR)
40
41#endif /* _PACKET_ETHERCAT_FRAME_H */
EtherCAT frame header, giving access to the 16-bit header word both as individual bit-fields and as a...
Definition packet-ethercat-frame.h:23
uint16_t length
Definition packet-ethercat-frame.h:26
uint16_t reserved
Definition packet-ethercat-frame.h:27
uint16_t protocol
Definition packet-ethercat-frame.h:28
struct _EtherCATFrameParser::@558 v
uint16_t hdr
Definition packet-ethercat-frame.h:30