{
case GRE_VERSION_0:
- /* GRE version 0 doenst support the fields below RFC 1701 */
+ /* GRE version 0 doesn't support the fields below RFC 1701 */
/**
* \todo We need to make sure this does not allow bypassing
case GRE_VERSION_1:
- /* GRE version 1 doenst support the fields below RFC 1701 */
+ /* GRE version 1 doesn't support the fields below RFC 1701 */
/**
* \todo We need to make sure this does not allow bypassing
* example we have DecodeIPV4() for IPv4 and DecodePPP() for
* PPP.
*
- * These functions have all a pkt and and a len argument which
+ * These functions have all a pkt and a len argument which
* are respectively a pointer to the protocol data and the length
* of this protocol data.
*
* \brief Finalize decoding of a packet
*
* This function needs to be call at the end of decode
- * functions when decoding has been succesful.
+ * functions when decoding has been successful.
*
*/
void PacketDecodeFinalize(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p)
SCReturnPtr(NULL, "Packet");
}
- /* copy packet and set lenght, proto */
+ /* copy packet and set length, proto */
PacketCopyData(p, pkt, len);
p->recursion_level = parent->recursion_level + 1;
p->ts.tv_sec = parent->ts.tv_sec;
/**
* \brief inform defrag "parent" that a pseudo packet is
- * now assosiated to it.
+ * now associated to it.
*/
void PacketDefragPktSetupParent(Packet *parent)
{
}
/**
- * \brief Set data for Packet and set length when zeo copy is used
+ * \brief Set data for Packet and set length when zero copy is used
*
* \param Pointer to the Packet to modify
* \param Pointer to the data
(a)->addr_data32[3] = 0; \
} while (0)
-/* Set the IPv6 addressesinto the Addrs of the Packet.
+/* Set the IPv6 addresses into the Addrs of the Packet.
* Make sure p->ip6h is initialized and validated. */
#define SET_IPV6_SRC_ADDR(p, a) do { \
(a)->family = AF_INET6; \
#endif /* PROFILING */
-/* forward declartion since Packet struct definition requires this */
+/* forward declaration since Packet struct definition requires this */
struct PacketQueue_;
/* sizes of the members:
#define PKT_ALLOC (1<<3) /**< Packet was alloc'd this run, needs to be freed */
#define PKT_HAS_TAG (1<<4) /**< Packet has matched a tag */
#define PKT_STREAM_ADD (1<<5) /**< Packet payload was added to reassembled stream */
-#define PKT_STREAM_EST (1<<6) /**< Packet is part of establised stream */
+#define PKT_STREAM_EST (1<<6) /**< Packet is part of established stream */
#define PKT_STREAM_EOF (1<<7) /**< Stream is in eof state */
#define PKT_HAS_FLOW (1<<8)
#define PKT_PSEUDO_STREAM_END (1<<9) /**< Pseudo packet to end the stream */