|
|
|
|
@ -26,8 +26,6 @@
|
|
|
|
|
|
|
|
|
|
#include "app-layer-enip-common.h"
|
|
|
|
|
|
|
|
|
|
#define ENIP_PORT 44818 //standard EtherNet/IP port
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CIP Service rule data structure
|
|
|
|
|
*/
|
|
|
|
|
@ -72,20 +70,4 @@ typedef struct CIPServiceData_
|
|
|
|
|
struct CIPServiceData* next;
|
|
|
|
|
} CIPServiceData;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ENIP data structure
|
|
|
|
|
*/
|
|
|
|
|
typedef struct ENIPData_
|
|
|
|
|
{
|
|
|
|
|
int direction;
|
|
|
|
|
ENIPEncapHdr header; //encapsulation header
|
|
|
|
|
ENIPEncapDataHdr encap_data_header; //encapsulation data header
|
|
|
|
|
ENIPEncapAddresItem encap_addr_item; //encapsulated address item
|
|
|
|
|
ENIPEncapDataItem encap_data_item; //encapsulated data item
|
|
|
|
|
|
|
|
|
|
CIPServiceData* service_head; //head of cip service data list
|
|
|
|
|
CIPServiceData* service_tail; //tail of cip service data list
|
|
|
|
|
|
|
|
|
|
} ENIPData;
|
|
|
|
|
|
|
|
|
|
#endif /* _DETECT_CIPSERVICE_H */
|
|
|
|
|
|