From 19d701ddf07d855128ded0cf2b573ce468e3bdd6 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Wed, 20 Jan 2016 01:10:01 +0000 Subject: Removing Suricata and Audit from source repo, and updated build.sh to avoid building suricata. Will re-address this in C release via tar balls. Change-Id: I3710076f8b7f3313cb3cb5260c4eb0a6834d4f6e Signed-off-by: Ashlee Young --- framework/src/suricata/src/app-layer.h | 141 --------------------------------- 1 file changed, 141 deletions(-) delete mode 100644 framework/src/suricata/src/app-layer.h (limited to 'framework/src/suricata/src/app-layer.h') diff --git a/framework/src/suricata/src/app-layer.h b/framework/src/suricata/src/app-layer.h deleted file mode 100644 index f45afe67..00000000 --- a/framework/src/suricata/src/app-layer.h +++ /dev/null @@ -1,141 +0,0 @@ -/* Copyright (C) 2007-2014 Open Information Security Foundation - * - * You can copy, redistribute or modify this Program under the terms of - * the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * version 2 along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - */ - -/** - * \author Victor Julien - * \author Anoop Saldanha - */ - -#ifndef __APP_LAYER_H__ -#define __APP_LAYER_H__ - -#include "threadvars.h" -#include "decode.h" -#include "flow.h" - -#include "stream-tcp-private.h" -#include "stream-tcp-reassemble.h" -#include "stream.h" - -#include "util-profiling.h" - -#define APP_LAYER_DATA_ALREADY_SENT_TO_APP_LAYER \ - (~STREAM_TOSERVER & ~STREAM_TOCLIENT) - -/***** L7 layer dispatchers *****/ - -/** - * \brief Handles reassembled tcp stream. - */ -int AppLayerHandleTCPData(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx, - Packet *p, Flow *f, - TcpSession *ssn, TcpStream *stream, - uint8_t *data, uint32_t data_len, - uint8_t flags); - -/** - * \brief Handles an udp chunk. - */ -int AppLayerHandleUdp(ThreadVars *tv, AppLayerThreadCtx *app_tctx, - Packet *p, Flow *f); - -/***** Utility *****/ - -/** - * \brief Given a protocol string, returns the corresponding internal - * protocol id. - * - * \param The internal protocol id. - */ -AppProto AppLayerGetProtoByName(char *alproto_name); - -/** - * \brief Given the internal protocol id, returns a string representation - * of the protocol. - * - * \param alproto The internal protocol id. - * - * \retval String representation of the protocol. - */ -char *AppLayerGetProtoName(AppProto alproto); - -void AppLayerListSupportedProtocols(void); - -/***** Setup/General Registration *****/ - -/** - * \brief Setup the app layer. - * - * Includes protocol detection setup and the protocol parser setup. - * - * \retval 0 On success. - * \retval -1 On failure. - */ -int AppLayerSetup(void); - -/** - * \brief De initializes the app layer. - * - * Includes de initializing protocol detection and the protocol parser. - */ -int AppLayerDeSetup(void); - -/** - * \brief Creates a new app layer thread context. - * - * \retval Pointer to the newly create thread context, on success; - * NULL, on failure. - */ -AppLayerThreadCtx *AppLayerGetCtxThread(ThreadVars *tv); - -/** - * \brief Destroys the context created by AppLayeGetCtxThread(). - * - * \param tctx Pointer to the thread context to destroy. - */ -void AppLayerDestroyCtxThread(AppLayerThreadCtx *tctx); - - -/***** Profiling *****/ - -void AppLayerProfilingResetInternal(AppLayerThreadCtx *app_tctx); - -static inline void AppLayerProfilingReset(AppLayerThreadCtx *app_tctx) -{ -#ifdef PROFILING - AppLayerProfilingResetInternal(app_tctx); -#endif -} - -void AppLayerProfilingStoreInternal(AppLayerThreadCtx *app_tctx, Packet *p); - -static inline void AppLayerProfilingStore(AppLayerThreadCtx *app_tctx, Packet *p) -{ -#ifdef PROFILING - AppLayerProfilingStoreInternal(app_tctx, p); -#endif -} - -void AppLayerRegisterGlobalCounters(void); - -/***** Unittests *****/ - -#ifdef UNITTESTS -void AppLayerUnittestsRegister(void); -#endif - -#endif -- cgit 1.2.3-korg