-/* Copyright (C) 2007-2016 Open Information Security Foundation
+/* Copyright (C) 2007-2021 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
int randomize = 0;
if ((ConfGetBool("stream.reassembly.randomize-chunk-size", &randomize)) == 0) {
/* randomize by default if value not set
- * In ut mode we disable, to get predictible test results */
+ * In ut mode we disable, to get predictable test results */
if (!(RunmodeIsUnittests()))
randomize = 1;
}
* packets while the session state is None which means a newly
* initialized structure, or a fully closed session.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*
* SYN, SYN/ACK, RST packets and correspondingly changes the connection
* state.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
} else if (p->tcph->th_flags & TH_ACK) {
/* Handle the asynchronous stream, when we receive a SYN packet
- and now istead of receving a SYN/ACK we receive a ACK from the
- same host, which sent the SYN, this suggests the ASNYC streams.*/
+ and now instead of receiving a SYN/ACK we receive a ACK from the
+ same host, which sent the SYN, this suggests the ASYNC streams.*/
if (stream_config.async_oneside == FALSE)
return 0;
* SYN, SYN/ACK, ACK, FIN, RST packets and correspondingly changes
* the connection state.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*
*
* Timestamp has already been checked at this point.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity etc.
+ * \param tv Thread Variable containing input/output queue, cpu affinity etc.
* \param ssn Pointer to the current TCP session
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*
* Timestamp has already been checked at this point.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity etc.
+ * \param tv Thread Variable containing input/output queue, cpu affinity etc.
* \param ssn Pointer to the current TCP session
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
* state. The function handles the data inside packets and call
* StreamTcpReassembleHandleSegment(tv, ) to handle the reassembling.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity etc.
+ * \param tv Thread Variable containing input/output queue, cpu affinity etc.
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
* \brief Function to handle the FIN packets for states TCP_SYN_RECV and
* TCP_ESTABLISHED and changes to another TCP state as required.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*
* ACK, FIN, RST packets and correspondingly changes the connection
* state.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*
* ACK, RST, FIN packets and correspondingly changes the connection
* state.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
* the connection goes to TCP_TIME_WAIT state. The state has been
* reached as both end application has been closed.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
* packet from server the connection goes to TCP_LAST_ACK state.
* The state is possible only for server host.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
* the connection goes to TCP_CLOSED state and stream memory is
* returned back to pool. The state is possible only for server host.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
* the connection goes to TCP_CLOSED state and stream memory is
* returned back to pool.
*
- * \param tv Thread Variable containig input/output queue, cpu affinity
+ * \param tv Thread Variable containing input/output queue, cpu affinity
* \param p Packet which has to be handled in this TCP state.
* \param stt Strean Thread module registered to handle the stream handling
*/
}
if (receiver_stream->os_policy == OS_POLICY_HPUX11) {
- /* HPUX11 igoners the timestamp of out of order packets */
+ /* HPUX11 ignores the timestamp of out of order packets */
if (!SEQ_EQ(sender_stream->next_seq, TCP_GET_SEQ(p)))
check_ts = 0;
}
/* Old Linux and windows allowed packet with 0 timestamp. */
break;
default:
- /* other OS simply drop the pakcet with 0 timestamp, when
+ /* other OS simply drop the packet with 0 timestamp, when
* 3whs has valid timestamp*/
goto invalid;
}
}
if (receiver_stream->os_policy == OS_POLICY_HPUX11) {
- /*HPUX11 igoners the timestamp of out of order packets*/
+ /*HPUX11 ignores the timestamp of out of order packets*/
if (!SEQ_EQ(sender_stream->next_seq, TCP_GET_SEQ(p)))
check_ts = 0;
}
/* Old Linux and windows allowed packet with 0 timestamp. */
break;
default:
- /* other OS simply drop the pakcet with 0 timestamp, when
+ /* other OS simply drop the packet with 0 timestamp, when
* 3whs has valid timestamp*/
goto invalid;
}
else
p->root = parent;
- /* copy packet and set lenght, proto */
+ /* copy packet and set length, proto */
p->proto = parent->proto;
p->datalink = parent->datalink;