forked from osmocom/wireshark
![Dario Lombardo](/assets/img/avatar_default.png)
Change-Id: I8155573933daeb69c6e4c95c6702bdd6fc1fa89b Reviewed-on: https://code.wireshark.org/review/25707 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
34 lines
817 B
C
34 lines
817 B
C
/* paket-ethercat-frame.h
|
|
*
|
|
* Copyright (c) 2007 by Beckhoff Automation GmbH
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef _PACKET_ETHERCAT_FRAME_H
|
|
#define _PACKET_ETHERCAT_FRAME_H
|
|
|
|
#include <ws_diag_control.h>
|
|
|
|
/* structure for decoding the header -----------------------------------------*/
|
|
DIAG_OFF(pedantic)
|
|
typedef union _EtherCATFrameParser
|
|
{
|
|
struct
|
|
{
|
|
guint16 length : 11;
|
|
guint16 reserved : 1;
|
|
guint16 protocol : 4;
|
|
} v;
|
|
guint16 hdr;
|
|
} EtherCATFrameParserHDR;
|
|
DIAG_ON(pedantic)
|
|
typedef EtherCATFrameParserHDR *PEtherCATFrameParserHDR;
|
|
|
|
#define EtherCATFrameParserHDR_Len (int)sizeof(EtherCATFrameParserHDR)
|
|
|
|
#endif /* _PACKET_ETHERCAT_FRAME_H */
|