{
unsigned idx = shells.size();
shells.push_back(sh);
- inspection_policy.push_back(new InspectionPolicy); // FIXIT-H need id?
+ inspection_policy.push_back(new InspectionPolicy); // FIXIT-M need id?
ips_policy.push_back(new IpsPolicy(idx));
network_policy.push_back(new NetworkPolicy(idx));
return idx;
}
}
-static void set_policy(Packet* p) // FIXIT-H delete this?
+static void set_policy(Packet* p) // FIXIT-M delete this?
{
set_default_policy();
p->user_policy_id = get_ips_policy()->user_policy_id;
p->flow = lws;
- set_policy(p); // FIXIT-H rebuilt should reuse original bindings from flow
+ set_policy(p); // FIXIT-M rebuilt should reuse original bindings from flow
SnortEventqReset();
SnortEventqPop();
if ( !p->proto_bits )
p->proto_bits = PROTO_BIT__OTHER;
-#if 0
- // FIXIT-H This should be deleted
- else if ( !p->family && (p->proto_bits & PROTO_BIT__IP) )
- p->proto_bits &= ~PROTO_BIT__IP;
-#endif
-
- set_policy(p); // FIXIT-H should not need this here
+ set_policy(p); // FIXIT-M should not need this here
/* just throw away the packet if we are configured to ignore this port */
if ( !(p->packet_flags & PKT_IGNORE) )
Active_Reset();
PacketManager::encode_reset();
- if ( flow_con ) // FIXIT-H always instantiate
+ if ( flow_con ) // FIXIT-M always instantiate
{
flow_con->timeout_flows(4, pkthdr->ts.tv_sec);
}
const StreamBuffer* sb = nullptr;
- // FIXIT-H force handling to work around nhttp
+ // FIXIT-M force handling to work around nhttp
if ( st->flags & TF_FORCE_FLUSH )
{
memcpy(flushbuf, ss->payload, bytes_to_copy);
{
s5_pkt->data = sb->data;
s5_pkt->dsize = sb->length;
- assert(sb->length < 65536); // FIXIT-H should be < s5_pkt->max_dsize);
+ assert(sb->length < 65536); // FIXIT-M should be < s5_pkt->max_dsize);
// FIXIT-M flushbuf should be eliminated from this function
// since we are actually using the stream splitter buffer
/* Set the StreamTcpConfig for each direction (pkt from client) */
- tmp->client.config = dstPolicy; // FIXIT-H use external binding for both dirs
+ tmp->client.config = dstPolicy; // FIXIT-M use external binding for both dirs
tmp->server.config = dstPolicy; // (applies to all the blocks in this funk)
CopyMacAddr(p, tmp, FROM_CLIENT);
}
else if ( !p->dsize )
{
-#if 0
- // FIXIT-H delete this?
- if ( p->dsize || p->ptrs.tcph->is_syn_ack() )
- {
- lwssn->session_state |= STREAM5_STATE_IGNORE;
- tcpStats.sessions_ignored++;
- }
-#endif
- //else if ( !(lwssn->session_state & STREAM5_STATE_NO_PICKUP) )
- // lwssn->session_state |= STREAM5_STATE_NO_PICKUP;
-
/* Do nothing. */
MODULE_PROFILE_END(s5TcpStatePerfStats);
return retcode;