"Fossies" - the Fresh Open Source Software Archive

Member "snort-2.9.17/src/preprocessors/HttpInspect/include/hi_paf.h" (16 Oct 2020, 1936 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 "hi_paf.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 /* $Id$ */
    2 /****************************************************************************
    3  *
    4  * Copyright (C) 2014-2020 Cisco and/or its affiliates. All rights reserved.
    5  * Copyright (C) 2011-2013 Sourcefire, Inc.
    6  *
    7  * This program is free software; you can redistribute it and/or modify
    8  * it under the terms of the GNU General Public License Version 2 as
    9  * published by the Free Software Foundation.  You may not use, modify or
   10  * distribute this program under any other version of the GNU General
   11  * Public License.
   12  *
   13  * This program is distributed in the hope that it will be useful,
   14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16  * GNU General Public License for more details.
   17  *
   18  * You should have received a copy of the GNU General Public License
   19  * along with this program; if not, write to the Free Software
   20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
   21  *
   22  ****************************************************************************/
   23 
   24 //--------------------------------------------------------------------
   25 // hi stuff
   26 //
   27 // @file    hi_paf.h
   28 // @author  Russ Combs <rcombs@sourcefire.com>
   29 //--------------------------------------------------------------------
   30 
   31 #ifndef __HI_PAF_H__
   32 #define __HI_PAF_H__
   33 
   34 #include "sfPolicy.h"
   35 #include "sf_types.h"
   36 
   37 bool hi_paf_init(uint32_t cap);
   38 void hi_paf_term(void);
   39 
   40 int hi_paf_register_port(struct _SnortConfig *sc, uint16_t port, bool client, bool server, tSfPolicyId pid, bool auto_on);
   41 int hi_paf_register_service(struct _SnortConfig *, uint16_t service, bool client, bool server, tSfPolicyId pid, bool auto_on);
   42 
   43 bool hi_paf_simple_request(void* ssn);
   44 bool hi_paf_resp_eoh(void* ssn);
   45 uint32_t hi_paf_resp_bytes_processed(void* ssn);
   46 bool hi_paf_disable_te(void *ssn, bool to_server);
   47 bool hi_paf_valid_http(void* ssn);
   48 uint32_t hi_paf_get_size();
   49 
   50 #endif
   51