/* \todo unify this which is phase 2 of payload inspection unification */
if (smd->type == DETECT_CONTENT) {
-
- DetectContentData *cd = (DetectContentData *)smd->ctx;
+ const DetectContentData *cd = (const DetectContentData *)smd->ctx;
SCLogDebug("inspecting content %"PRIu32" buffer_len %"PRIu32, cd->id, buffer_len);
/* we might have already have this content matched by the mpm.
* earlier changes. Thus the highest priority modifications should be
* applied last.
*/
-DetectReplaceList *DetectReplaceAddToList(DetectReplaceList *replist,
- uint8_t *found,
- DetectContentData *cd)
+DetectReplaceList *DetectReplaceAddToList(
+ DetectReplaceList *replist, uint8_t *found, const DetectContentData *cd)
{
DetectReplaceList *newlist;
#include "detect-content.h"
-DetectReplaceList * DetectReplaceAddToList(DetectReplaceList *replist, uint8_t *found, DetectContentData *cd);
+DetectReplaceList *DetectReplaceAddToList(
+ DetectReplaceList *replist, uint8_t *found, const DetectContentData *cd);
/* Internal functions are only called via the inline functions below. */
void DetectReplaceExecuteInternal(Packet *p, DetectReplaceList *replist);
} DetectPatternTracker;
typedef struct DetectReplaceList_ {
- struct DetectContentData_ *cd;
+ const struct DetectContentData_ *cd;
uint8_t *found;
struct DetectReplaceList_ *next;
} DetectReplaceList;