suricata
|
Go to the source code of this file.
Macros | |
#define | DNP3_OBJECT_CODE(group, variation) (group << 8 | variation) |
Functions | |
int | DNP3DecodeObject (int group, int variation, const uint8_t **buf, uint32_t *len, uint8_t prefix_code, uint32_t start, uint32_t count, DNP3PointList *) |
Decode a DNP3 object. More... | |
DNP3PointList * | DNP3PointListAlloc (void) |
Allocate a list for DNP3 points. More... | |
void | DNP3FreeObjectPointList (int group, int variation, DNP3PointList *) |
Free a DNP3PointList. More... | |
This file contains the types (definitions) of the DNP3 objects.
Definition in file app-layer-dnp3-objects.h.
Definition at line 30 of file app-layer-dnp3-objects.h.
typedef struct DNP3ObjectG102V1_ DNP3ObjectG102V1 |
typedef struct DNP3ObjectG10V1_ DNP3ObjectG10V1 |
typedef struct DNP3ObjectG10V2_ DNP3ObjectG10V2 |
typedef struct DNP3ObjectG11V1_ DNP3ObjectG11V1 |
typedef struct DNP3ObjectG11V2_ DNP3ObjectG11V2 |
typedef struct DNP3ObjectG120V1_ DNP3ObjectG120V1 |
typedef struct DNP3ObjectG120V10_ DNP3ObjectG120V10 |
typedef struct DNP3ObjectG120V11_ DNP3ObjectG120V11 |
typedef struct DNP3ObjectG120V12_ DNP3ObjectG120V12 |
typedef struct DNP3ObjectG120V13_ DNP3ObjectG120V13 |
typedef struct DNP3ObjectG120V14_ DNP3ObjectG120V14 |
typedef struct DNP3ObjectG120V15_ DNP3ObjectG120V15 |
typedef struct DNP3ObjectG120V2_ DNP3ObjectG120V2 |
typedef struct DNP3ObjectG120V3_ DNP3ObjectG120V3 |
typedef struct DNP3ObjectG120V4_ DNP3ObjectG120V4 |
typedef struct DNP3ObjectG120V5_ DNP3ObjectG120V5 |
typedef struct DNP3ObjectG120V6_ DNP3ObjectG120V6 |
typedef struct DNP3ObjectG120V7_ DNP3ObjectG120V7 |
typedef struct DNP3ObjectG120V8_ DNP3ObjectG120V8 |
typedef struct DNP3ObjectG120V9_ DNP3ObjectG120V9 |
typedef struct DNP3ObjectG121V1_ DNP3ObjectG121V1 |
typedef struct DNP3ObjectG122V1_ DNP3ObjectG122V1 |
typedef struct DNP3ObjectG122V2_ DNP3ObjectG122V2 |
typedef struct DNP3ObjectG12V1_ DNP3ObjectG12V1 |
typedef struct DNP3ObjectG12V2_ DNP3ObjectG12V2 |
typedef struct DNP3ObjectG12V3_ DNP3ObjectG12V3 |
typedef struct DNP3ObjectG13V1_ DNP3ObjectG13V1 |
typedef struct DNP3ObjectG13V2_ DNP3ObjectG13V2 |
typedef struct DNP3ObjectG1V1_ DNP3ObjectG1V1 |
typedef struct DNP3ObjectG1V2_ DNP3ObjectG1V2 |
typedef struct DNP3ObjectG20V1_ DNP3ObjectG20V1 |
typedef struct DNP3ObjectG20V2_ DNP3ObjectG20V2 |
typedef struct DNP3ObjectG20V3_ DNP3ObjectG20V3 |
typedef struct DNP3ObjectG20V4_ DNP3ObjectG20V4 |
typedef struct DNP3ObjectG20V5_ DNP3ObjectG20V5 |
typedef struct DNP3ObjectG20V6_ DNP3ObjectG20V6 |
typedef struct DNP3ObjectG20V7_ DNP3ObjectG20V7 |
typedef struct DNP3ObjectG20V8_ DNP3ObjectG20V8 |
typedef struct DNP3ObjectG21V1_ DNP3ObjectG21V1 |
typedef struct DNP3ObjectG21V10_ DNP3ObjectG21V10 |
typedef struct DNP3ObjectG21V11_ DNP3ObjectG21V11 |
typedef struct DNP3ObjectG21V12_ DNP3ObjectG21V12 |
typedef struct DNP3ObjectG21V2_ DNP3ObjectG21V2 |
typedef struct DNP3ObjectG21V3_ DNP3ObjectG21V3 |
typedef struct DNP3ObjectG21V4_ DNP3ObjectG21V4 |
typedef struct DNP3ObjectG21V5_ DNP3ObjectG21V5 |
typedef struct DNP3ObjectG21V6_ DNP3ObjectG21V6 |
typedef struct DNP3ObjectG21V7_ DNP3ObjectG21V7 |
typedef struct DNP3ObjectG21V8_ DNP3ObjectG21V8 |
typedef struct DNP3ObjectG21V9_ DNP3ObjectG21V9 |
typedef struct DNP3ObjectG22V1_ DNP3ObjectG22V1 |
typedef struct DNP3ObjectG22V2_ DNP3ObjectG22V2 |
typedef struct DNP3ObjectG22V3_ DNP3ObjectG22V3 |
typedef struct DNP3ObjectG22V4_ DNP3ObjectG22V4 |
typedef struct DNP3ObjectG22V5_ DNP3ObjectG22V5 |
typedef struct DNP3ObjectG22V6_ DNP3ObjectG22V6 |
typedef struct DNP3ObjectG22V7_ DNP3ObjectG22V7 |
typedef struct DNP3ObjectG22V8_ DNP3ObjectG22V8 |
typedef struct DNP3ObjectG23V1_ DNP3ObjectG23V1 |
typedef struct DNP3ObjectG23V2_ DNP3ObjectG23V2 |
typedef struct DNP3ObjectG23V3_ DNP3ObjectG23V3 |
typedef struct DNP3ObjectG23V4_ DNP3ObjectG23V4 |
typedef struct DNP3ObjectG23V5_ DNP3ObjectG23V5 |
typedef struct DNP3ObjectG23V6_ DNP3ObjectG23V6 |
typedef struct DNP3ObjectG23V7_ DNP3ObjectG23V7 |
typedef struct DNP3ObjectG23V8_ DNP3ObjectG23V8 |
typedef struct DNP3ObjectG2V1_ DNP3ObjectG2V1 |
typedef struct DNP3ObjectG2V2_ DNP3ObjectG2V2 |
typedef struct DNP3ObjectG2V3_ DNP3ObjectG2V3 |
typedef struct DNP3ObjectG30V1_ DNP3ObjectG30V1 |
typedef struct DNP3ObjectG30V2_ DNP3ObjectG30V2 |
typedef struct DNP3ObjectG30V3_ DNP3ObjectG30V3 |
typedef struct DNP3ObjectG30V4_ DNP3ObjectG30V4 |
typedef struct DNP3ObjectG30V5_ DNP3ObjectG30V5 |
typedef struct DNP3ObjectG30V6_ DNP3ObjectG30V6 |
typedef struct DNP3ObjectG31V1_ DNP3ObjectG31V1 |
typedef struct DNP3ObjectG31V2_ DNP3ObjectG31V2 |
typedef struct DNP3ObjectG31V3_ DNP3ObjectG31V3 |
typedef struct DNP3ObjectG31V4_ DNP3ObjectG31V4 |
typedef struct DNP3ObjectG31V5_ DNP3ObjectG31V5 |
typedef struct DNP3ObjectG31V6_ DNP3ObjectG31V6 |
typedef struct DNP3ObjectG31V7_ DNP3ObjectG31V7 |
typedef struct DNP3ObjectG31V8_ DNP3ObjectG31V8 |
typedef struct DNP3ObjectG32V1_ DNP3ObjectG32V1 |
typedef struct DNP3ObjectG32V2_ DNP3ObjectG32V2 |
typedef struct DNP3ObjectG32V3_ DNP3ObjectG32V3 |
typedef struct DNP3ObjectG32V4_ DNP3ObjectG32V4 |
typedef struct DNP3ObjectG32V5_ DNP3ObjectG32V5 |
typedef struct DNP3ObjectG32V6_ DNP3ObjectG32V6 |
typedef struct DNP3ObjectG32V7_ DNP3ObjectG32V7 |
typedef struct DNP3ObjectG32V8_ DNP3ObjectG32V8 |
typedef struct DNP3ObjectG33V1_ DNP3ObjectG33V1 |
typedef struct DNP3ObjectG33V2_ DNP3ObjectG33V2 |
typedef struct DNP3ObjectG33V3_ DNP3ObjectG33V3 |
typedef struct DNP3ObjectG33V4_ DNP3ObjectG33V4 |
typedef struct DNP3ObjectG33V5_ DNP3ObjectG33V5 |
typedef struct DNP3ObjectG33V6_ DNP3ObjectG33V6 |
typedef struct DNP3ObjectG33V7_ DNP3ObjectG33V7 |
typedef struct DNP3ObjectG33V8_ DNP3ObjectG33V8 |
typedef struct DNP3ObjectG34V1_ DNP3ObjectG34V1 |
typedef struct DNP3ObjectG34V2_ DNP3ObjectG34V2 |
typedef struct DNP3ObjectG34V3_ DNP3ObjectG34V3 |
typedef struct DNP3ObjectG3V1_ DNP3ObjectG3V1 |
typedef struct DNP3ObjectG3V2_ DNP3ObjectG3V2 |
typedef struct DNP3ObjectG40V1_ DNP3ObjectG40V1 |
typedef struct DNP3ObjectG40V2_ DNP3ObjectG40V2 |
typedef struct DNP3ObjectG40V3_ DNP3ObjectG40V3 |
typedef struct DNP3ObjectG40V4_ DNP3ObjectG40V4 |
typedef struct DNP3ObjectG41V1_ DNP3ObjectG41V1 |
typedef struct DNP3ObjectG41V2_ DNP3ObjectG41V2 |
typedef struct DNP3ObjectG41V3_ DNP3ObjectG41V3 |
typedef struct DNP3ObjectG41V4_ DNP3ObjectG41V4 |
typedef struct DNP3ObjectG42V1_ DNP3ObjectG42V1 |
typedef struct DNP3ObjectG42V2_ DNP3ObjectG42V2 |
typedef struct DNP3ObjectG42V3_ DNP3ObjectG42V3 |
typedef struct DNP3ObjectG42V4_ DNP3ObjectG42V4 |
typedef struct DNP3ObjectG42V5_ DNP3ObjectG42V5 |
typedef struct DNP3ObjectG42V6_ DNP3ObjectG42V6 |
typedef struct DNP3ObjectG42V7_ DNP3ObjectG42V7 |
typedef struct DNP3ObjectG42V8_ DNP3ObjectG42V8 |
typedef struct DNP3ObjectG43V1_ DNP3ObjectG43V1 |
typedef struct DNP3ObjectG43V2_ DNP3ObjectG43V2 |
typedef struct DNP3ObjectG43V3_ DNP3ObjectG43V3 |
typedef struct DNP3ObjectG43V4_ DNP3ObjectG43V4 |
typedef struct DNP3ObjectG43V5_ DNP3ObjectG43V5 |
typedef struct DNP3ObjectG43V6_ DNP3ObjectG43V6 |
typedef struct DNP3ObjectG43V7_ DNP3ObjectG43V7 |
typedef struct DNP3ObjectG43V8_ DNP3ObjectG43V8 |
typedef struct DNP3ObjectG4V1_ DNP3ObjectG4V1 |
typedef struct DNP3ObjectG4V2_ DNP3ObjectG4V2 |
typedef struct DNP3ObjectG4V3_ DNP3ObjectG4V3 |
typedef struct DNP3ObjectG50V1_ DNP3ObjectG50V1 |
typedef struct DNP3ObjectG50V2_ DNP3ObjectG50V2 |
typedef struct DNP3ObjectG50V3_ DNP3ObjectG50V3 |
typedef struct DNP3ObjectG50V4_ DNP3ObjectG50V4 |
typedef struct DNP3ObjectG51V1_ DNP3ObjectG51V1 |
typedef struct DNP3ObjectG51V2_ DNP3ObjectG51V2 |
typedef struct DNP3ObjectG52V1_ DNP3ObjectG52V1 |
typedef struct DNP3ObjectG52V2_ DNP3ObjectG52V2 |
typedef struct DNP3ObjectG70V1_ DNP3ObjectG70V1 |
typedef struct DNP3ObjectG70V2_ DNP3ObjectG70V2 |
typedef struct DNP3ObjectG70V3_ DNP3ObjectG70V3 |
typedef struct DNP3ObjectG70V4_ DNP3ObjectG70V4 |
typedef struct DNP3ObjectG70V5_ DNP3ObjectG70V5 |
typedef struct DNP3ObjectG70V6_ DNP3ObjectG70V6 |
typedef struct DNP3ObjectG70V7_ DNP3ObjectG70V7 |
typedef struct DNP3ObjectG70V8_ DNP3ObjectG70V8 |
typedef struct DNP3ObjectG80V1_ DNP3ObjectG80V1 |
typedef struct DNP3ObjectG81V1_ DNP3ObjectG81V1 |
typedef struct DNP3ObjectG83V1_ DNP3ObjectG83V1 |
typedef struct DNP3ObjectG86V2_ DNP3ObjectG86V2 |
int DNP3DecodeObject | ( | int | group, |
int | variation, | ||
const uint8_t ** | buf, | ||
uint32_t * | len, | ||
uint8_t | prefix_code, | ||
uint32_t | start, | ||
uint32_t | count, | ||
DNP3PointList * | points | ||
) |
Decode a DNP3 object.
0 | on success. On failure a positive integer corresponding to a DNP3 application layer event will be returned. |
Definition at line 9109 of file app-layer-dnp3-objects.c.
References DNP3_OBJECT_CODE, group, and variation.
void DNP3FreeObjectPointList | ( | int | group, |
int | variation, | ||
DNP3PointList * | |||
) |
Free a DNP3PointList.
Definition at line 58 of file app-layer-dnp3-objects.c.
DNP3PointList* DNP3PointListAlloc | ( | void | ) |
Allocate a list for DNP3 points.
Definition at line 45 of file app-layer-dnp3-objects.c.
References SCCalloc, TAILQ_INIT, and unlikely.