wireshark/plugins/epan/ethercat/packet-ethercat-frame.h
Dario Lombardo d2d1f793f8 plugins: use SPDX identifiers.
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>
2018-02-09 14:12:48 +00:00

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 */