24#ifndef SURICATA_DECODE_PPPOE_H
25#define SURICATA_DECODE_PPPOE_H
28#define PPPOE_SESSION_HEADER_MIN_LEN 7
29#define PPPOE_DISCOVERY_HEADER_MIN_LEN 6
30#define PPPOE_SESSION_GET_VERSION(hdr) ((hdr)->pppoe_version_type & 0xF0) >> 4
31#define PPPOE_SESSION_GET_TYPE(hdr) ((hdr)->pppoe_version_type & 0x0F)
32#define PPPOE_DISCOVERY_GET_VERSION(hdr) ((hdr)->pppoe_version_type & 0xF0) >> 4
33#define PPPOE_DISCOVERY_GET_TYPE(hdr) ((hdr)->pppoe_version_type & 0x0F)
59#define PPPOE_CODE_PADI 0x09
60#define PPPOE_CODE_PADO 0x07
61#define PPPOE_CODE_PADR 0x19
62#define PPPOE_CODE_PADS 0x65
63#define PPPOE_CODE_PADT 0xa7
66#define PPPOE_TAG_END_OF_LIST 0x0000
67#define PPPOE_TAG_SERVICE_NAME 0x0101
68#define PPPOE_TAG_AC_NAME 0x0102
69#define PPPOE_TAG_HOST_UNIQ 0x0103
70#define PPPOE_TAG_AC_COOKIE 0x0104
71#define PPPOE_TAG_VENDOR_SPECIFIC 0x0105
72#define PPPOE_TAG_RELAY_SESSION_ID 0x0110
73#define PPPOE_TAG_SERVICE_NAME_ERROR 0x0201
74#define PPPOE_TAG_AC_SYS_ERROR 0x0202
75#define PPPOE_TAG_GEN_ERROR 0x0203
void DecodePPPOERegisterTests(void)
Registers PPPOE unit tests.
struct PPPOESessionHdr_ PPPOESessionHdr
struct PrefilterEngineFlowbits __attribute__
DNP3 application header.
uint8_t pppoe_version_type
uint16_t pppoe_tag_length
uint8_t pppoe_version_type