"Fossies" - the Fresh Open Source Software Archive 
Member "snort-2.9.17/src/preprocessors/Stream6/snort_stream_icmp.h" (16 Oct 2020, 1914 Bytes) of package /linux/misc/snort-2.9.17.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "snort_stream_icmp.h" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
2.9.16.1_vs_2.9.17.
1 /****************************************************************************
2 *
3 * Copyright (C) 2014-2020 Cisco and/or its affiliates. All rights reserved.
4 * Copyright (C) 2005-2013 Sourcefire, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License Version 2 as
8 * published by the Free Software Foundation. You may not use, modify or
9 * distribute this program under any other version of the GNU General
10 * Public License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 *
21 ****************************************************************************/
22
23 #ifndef STREAM_ICMP_H_
24 #define STREAM_ICMP_H_
25
26 #include "session_common.h"
27 #include "stream_common.h"
28 #include "sfPolicy.h"
29
30 void StreamCleanIcmp(void);
31 void StreamResetIcmp(void);
32 void StreamInitIcmp(void);
33 void StreamIcmpPolicyInit(StreamIcmpConfig *, char *);
34 int StreamVerifyIcmpConfig(StreamIcmpConfig *, tSfPolicyId);
35 int StreamProcessIcmp(Packet *p);
36 void IcmpUpdateDirection(SessionControlBlock *ssn, char dir,
37 sfaddr_t* ip, uint16_t port);
38 void StreamIcmpConfigFree(StreamIcmpConfig *);
39
40 uint32_t StreamGetIcmpPrunes(void);
41 void StreamResetIcmpPrunes(void);
42 void IcmpSessionCleanup(SessionControlBlock *ssn);
43
44 void SessionICMPReload(uint32_t max_sessions, uint16_t pruningTimeout, uint16_t nominalTimeout);
45 unsigned SessionICMPReloadAdjust(unsigned maxWork);
46
47 size_t get_icmp_used_mempool();
48
49 #endif /* STREAM_ICMP_H_ */