|
|
|
@ -1099,18 +1099,13 @@ static void AppLayerProtoDetectPMGetIpprotos(AppProto alproto,
|
|
|
|
|
{
|
|
|
|
|
SCEnter();
|
|
|
|
|
|
|
|
|
|
const AppLayerProtoDetectPMSignature *s = NULL;
|
|
|
|
|
int i, j;
|
|
|
|
|
uint8_t ipproto;
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < FLOW_PROTO_DEFAULT; i++) {
|
|
|
|
|
ipproto = FlowGetReverseProtoMapping(i);
|
|
|
|
|
for (j = 0; j < 2; j++) {
|
|
|
|
|
for (int i = 0; i < FLOW_PROTO_DEFAULT; i++) {
|
|
|
|
|
uint8_t ipproto = FlowGetReverseProtoMapping(i);
|
|
|
|
|
for (int j = 0; j < 2; j++) {
|
|
|
|
|
AppLayerProtoDetectPMCtx *pm_ctx = &alpd_ctx.ctx_ipp[i].ctx_pm[j];
|
|
|
|
|
|
|
|
|
|
SigIntId x;
|
|
|
|
|
for (x = 0; x < pm_ctx->max_sig_id;x++) {
|
|
|
|
|
s = pm_ctx->map[x];
|
|
|
|
|
for (SigIntId x = 0; x < pm_ctx->max_sig_id; x++) {
|
|
|
|
|
const AppLayerProtoDetectPMSignature *s = pm_ctx->map[x];
|
|
|
|
|
if (s->alproto == alproto)
|
|
|
|
|
ipprotos[ipproto / 8] |= 1 << (ipproto % 8);
|
|
|
|
|
}
|
|
|
|
|