stream_common.h (snort-2.9.16.1) | : | stream_common.h (snort-2.9.17) | ||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
#define STREAM_STATE_NONE 0x0000 | #define STREAM_STATE_NONE 0x0000 | |||
#define STREAM_STATE_SYN 0x0001 | #define STREAM_STATE_SYN 0x0001 | |||
#define STREAM_STATE_SYN_ACK 0x0002 | #define STREAM_STATE_SYN_ACK 0x0002 | |||
#define STREAM_STATE_ACK 0x0004 | #define STREAM_STATE_ACK 0x0004 | |||
#define STREAM_STATE_ESTABLISHED 0x0008 | #define STREAM_STATE_ESTABLISHED 0x0008 | |||
#define STREAM_STATE_DROP_CLIENT 0x0010 | #define STREAM_STATE_DROP_CLIENT 0x0010 | |||
#define STREAM_STATE_DROP_SERVER 0x0020 | #define STREAM_STATE_DROP_SERVER 0x0020 | |||
#define STREAM_STATE_MIDSTREAM 0x0040 | #define STREAM_STATE_MIDSTREAM 0x0040 | |||
#define STREAM_STATE_TIMEDOUT 0x0080 | #define STREAM_STATE_TIMEDOUT 0x0080 | |||
#define STREAM_STATE_UNREACH 0x0100 | #define STREAM_STATE_UNREACH 0x0100 | |||
#define STREAM_STATE_PORT_INSPECT 0x0200 | ||||
#define STREAM_STATE_CLOSED 0x0800 | #define STREAM_STATE_CLOSED 0x0800 | |||
/* D A T A S T R U C T U R E S **********************************/ | /* D A T A S T R U C T U R E S **********************************/ | |||
typedef struct _FlushMgr | typedef struct _FlushMgr | |||
{ | { | |||
uint32_t flush_pt; | uint32_t flush_pt; | |||
uint16_t last_count; | uint16_t last_count; | |||
uint16_t last_size; | uint16_t last_size; | |||
uint8_t flush_policy; | uint8_t flush_policy; | |||
uint8_t flush_type; | uint8_t flush_type; | |||
skipping to change at line 316 | skipping to change at line 317 | |||
uint32_t udp_timeouts; | uint32_t udp_timeouts; | |||
uint32_t udp_sessions_created; | uint32_t udp_sessions_created; | |||
uint32_t udp_sessions_released; | uint32_t udp_sessions_released; | |||
uint32_t udp_discards; | uint32_t udp_discards; | |||
uint32_t icmp_timeouts; | uint32_t icmp_timeouts; | |||
uint32_t icmp_sessions_created; | uint32_t icmp_sessions_created; | |||
uint32_t icmp_sessions_released; | uint32_t icmp_sessions_released; | |||
uint32_t ip_timeouts; | uint32_t ip_timeouts; | |||
uint32_t events; | uint32_t events; | |||
uint32_t internalEvents; | uint32_t internalEvents; | |||
uint32_t active_tcp_sessions; | ||||
uint64_t active_tcp_memory; | ||||
uint32_t active_udp_sessions; | ||||
uint32_t active_icmp_sessions; | ||||
uint32_t active_ip_sessions; | ||||
tPortFilterStats tcp_port_filter; | tPortFilterStats tcp_port_filter; | |||
tPortFilterStats udp_port_filter; | tPortFilterStats udp_port_filter; | |||
} StreamStats; | } StreamStats; | |||
/**Whether incoming packets should be ignored or processed. | /**Whether incoming packets should be ignored or processed. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
/**Ignore the packet. */ | /**Ignore the packet. */ | |||
PORT_MONITOR_PACKET_PROCESS = 0, | PORT_MONITOR_PACKET_PROCESS = 0, | |||
skipping to change at line 371 | skipping to change at line 377 | |||
flowdata = ( StreamFlowData * ) scb->flowdata->data; | flowdata = ( StreamFlowData * ) scb->flowdata->data; | |||
boResetBITOP( &( flowdata->boFlowbits ) ); | boResetBITOP( &( flowdata->boFlowbits ) ); | |||
} | } | |||
void setPortFilterList( struct _SnortConfig *sc, uint16_t *portList, IpProto pro tocol, | void setPortFilterList( struct _SnortConfig *sc, uint16_t *portList, IpProto pro tocol, | |||
int ignoreAnyAnyRules, tSfPolicyId policyId ); | int ignoreAnyAnyRules, tSfPolicyId policyId ); | |||
int StreamAnyAnyFlow( uint16_t *portList, OptTreeNode *otn, RuleTreeNode *rtn, i nt any_any_flow, | int StreamAnyAnyFlow( uint16_t *portList, OptTreeNode *otn, RuleTreeNode *rtn, i nt any_any_flow, | |||
IgnoredRuleList **ppIgnoredRuleList, int ignoreAnyAnyRules ); | IgnoredRuleList **ppIgnoredRuleList, int ignoreAnyAnyRules ); | |||
void s5PrintPortFilter( uint16_t portList[] ); | void s5PrintPortFilter( uint16_t portList[] ); | |||
int StreamSetRuntimeConfiguration( SessionControlBlock *scb, uint8_t protocol ); | int StreamSetRuntimeConfiguration( SessionControlBlock *scb, uint8_t protocol ); | |||
bool getStreamIgnoreAnyConfig (struct _SnortConfig *sc, IpProto protocol); | ||||
// shared stream state | // shared stream state | |||
extern StreamStats s5stats; | extern StreamStats s5stats; | |||
extern uint32_t firstPacketTime; | extern uint32_t firstPacketTime; | |||
extern MemPool s5FlowMempool; | extern MemPool s5FlowMempool; | |||
extern uint32_t session_mem_in_use; | extern uint32_t session_mem_in_use; | |||
extern SessionConfiguration *stream_session_config; | extern SessionConfiguration *stream_session_config; | |||
extern tSfPolicyUserContextId stream_online_config; | extern tSfPolicyUserContextId stream_online_config; | |||
extern tSfActionQueueId decoderActionQ; | extern tSfActionQueueId decoderActionQ; | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |