Disable unused code, fix compiler warning.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent 936b34ddf6
commit 5d2a341096

@ -32,7 +32,9 @@
#include "flow.h" #include "flow.h"
#include "util-debug.h" #include "util-debug.h"
#include "util-print.h"
//#define PRINT
extern uint8_t engine_mode; extern uint8_t engine_mode;
/** \brief Get the active app layer proto from the packet /** \brief Get the active app layer proto from the packet
@ -102,8 +104,6 @@ void *AppLayerGetProtoStateFromFlow(Flow *f) {
/** global app layer detection context */ /** global app layer detection context */
extern AlpProtoDetectCtx alp_proto_ctx; extern AlpProtoDetectCtx alp_proto_ctx;
//#define PRINT
/** /**
* \brief Handle a chunk of TCP data * \brief Handle a chunk of TCP data
* *
@ -310,6 +310,7 @@ int AppLayerHandleTCPMsg(AlpProtoDetectThreadCtx *dp_ctx, StreamMsg *smsg)
SCReturnInt(0); SCReturnInt(0);
} }
#if 0
/** /**
* \brief Handle a app layer TCP message * \brief Handle a app layer TCP message
* *
@ -466,6 +467,7 @@ int AppLayerHandleMsg(AlpProtoDetectThreadCtx *dp_ctx, StreamMsg *smsg)
SCReturnInt(r); SCReturnInt(r);
} }
#endif
/** /**
* \brief Handle a app layer UDP message * \brief Handle a app layer UDP message

@ -40,7 +40,7 @@ void *AppLayerGetProtoStateFromPacket(Packet *);
void *AppLayerGetProtoStateFromFlow(Flow *); void *AppLayerGetProtoStateFromFlow(Flow *);
int AppLayerHandleTCPData(AlpProtoDetectThreadCtx *, Flow *, TcpSession *, uint8_t *, uint32_t, uint8_t); int AppLayerHandleTCPData(AlpProtoDetectThreadCtx *, Flow *, TcpSession *, uint8_t *, uint32_t, uint8_t);
int AppLayerHandleTCPMsg(AlpProtoDetectThreadCtx *, StreamMsg *); int AppLayerHandleTCPMsg(AlpProtoDetectThreadCtx *, StreamMsg *);
int AppLayerHandleMsg(AlpProtoDetectThreadCtx *, StreamMsg *); //int AppLayerHandleMsg(AlpProtoDetectThreadCtx *, StreamMsg *);
int AppLayerHandleUdp(AlpProtoDetectThreadCtx *, Flow *, Packet *p); int AppLayerHandleUdp(AlpProtoDetectThreadCtx *, Flow *, Packet *p);
#endif /* __APP_LAYER_H__ */ #endif /* __APP_LAYER_H__ */

Loading…
Cancel
Save