blob: 75f1bc1f8a9152268e06c386fd79baedeca29f77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef _APP_STREAM_CUSTOM_H_
#define _APP_STREAM_CUSTOM_H_
#ifdef __cplusplus
extern "C" {
#endif
#define TCP_FLOOD_DETECT_OFF 0x0
#define TCP_SYNFLOOD_DETECT_ON 0x01
#define TCP_DATAFLOOD_DETECT_ON 0x02
#define TCP_SUPPORT_ENTRYALL_OFF 0x0
#define TCP_SUPPORT_ENTRYALL_ON 0x1
//ip��Ƭ����������غ���
int ipv4_frag_init(int thread_count, unsigned int hash_size);
int ipv6_frag_init(int thread_count, unsigned hash_size);
//���ӹ�������
//��ʼ�������߳���Ŀ
int init_stream_manage(int threadcount);
// ���� (tcp,udpͨ��)������ް�����ʱ��Ϊ�趨��timeout(��λ:��)
//Ĭ��ֵΪ0,��ʱֻ����lru��̭�������а�ʱ����̭
void stream_set_default_nopkt_time(unsigned short timeout);
//���ò�ͬ״̬���ӵı��ֲ���������Ŀ
int udp_set_stream_num(int udp1,int udp2,int udp3);
int tcp_set_stream_num(int tcpsyn,int tcpdata,int tcpnouse);
//����Ĭ�ϵ�����洢����Ŀ
int tcp_set_default_unorder_num(unsigned short max_unorder);
//�������ӽ���ģʽ
int tcp_set_creatlink_model(int model);
//�����Ƿ���tcpallģʽ,Ĭ��off
int tcp_set_support_tcpall_model(int model);
//���ù������ģʽ��Ĭ��δ����
int tcp_set_flood_detect_model(int model);
//�������ӵ�����ʱ��
void udp_set_stream_resettime(unsigned short timeout);
//����Ĭ�ϵ�����洢����Ŀ
int tcp_set_default_unorder_num(unsigned short max_unorder);
/* 2014-10-11 lijia add, for rst pkt finger */
int set_rst_rand_key(int rnd_key);
int set_rst_max_rnd_val(int max_rnd_val);
#ifdef __cplusplus
}
#endif
#endif
|