suricata
decode-etag.h
Go to the documentation of this file.
1 /* Copyright (C) 2025 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Fupeng Zhao <fupeng.zhao@foxmail.com>
22  */
23 
24 #ifndef SURICATA_DECODE_ETAG_H
25 #define SURICATA_DECODE_ETAG_H
26 
27 /** E-Tag header struct */
28 typedef struct ETagHdr_ {
32  uint8_t ecid_ext;
33  uint16_t protocol; /**< next protocol */
34 } __attribute__((__packed__)) ETagHdr;
35 
36 /** E-Tag header length */
37 #define ETAG_HEADER_LEN 8
38 
39 void DecodeETagRegisterTests(void);
40 
41 #endif /* SURICATA_DECODE_ETAG_H */
ETagHdr_
Definition: decode-etag.h:28
ETagHdr_::pcp_dei_ingress_base
uint16_t pcp_dei_ingress_base
Definition: decode-etag.h:29
__attribute__
struct ETagHdr_ __attribute__((__packed__)) ETagHdr
DNP3 link header.
Definition: decode-vlan.c:102
ETagHdr_::resv_grp_ecid_base
uint16_t resv_grp_ecid_base
Definition: decode-etag.h:30
ETagHdr_::ecid_ext
uint8_t ecid_ext
Definition: decode-etag.h:32
ETagHdr_::ingress_ecid_ext
uint8_t ingress_ecid_ext
Definition: decode-etag.h:31
ETagHdr_::protocol
uint16_t protocol
Definition: decode-etag.h:33
DecodeETagRegisterTests
void DecodeETagRegisterTests(void)
Definition: decode-etag.c:150