Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
plugins
epan
ethercat
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 <
[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 -----------------------------------------*/
17
DIAG_OFF_PEDANTIC
18
typedef
union
_EtherCATFrameParser
19
{
20
struct
21
{
22
uint16_t length : 11;
23
uint16_t reserved : 1;
24
uint16_t protocol : 4;
25
} v;
26
uint16_t 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 */
_EtherCATFrameParser
Definition
packet-ethercat-frame.h:19
Generated by
1.9.8