From 5eb4095b9a1ada363f4c2696c3c2173946535d8a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 13 Apr 2010 10:30:27 +0200 Subject: [PATCH] Comment ECN/CWR changes more. --- src/decode-tcp.h | 3 +++ src/stream-tcp.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/decode-tcp.h b/src/decode-tcp.h index d155e013da..60b6f53356 100644 --- a/src/decode-tcp.h +++ b/src/decode-tcp.h @@ -12,13 +12,16 @@ * (type + len), except EOL and NOP */ /* TCP flags */ + #define TH_FIN 0x01 #define TH_SYN 0x02 #define TH_RST 0x04 #define TH_PUSH 0x08 #define TH_ACK 0x10 #define TH_URG 0x20 +/** Establish a new connection reducing window */ #define TH_ECN 0x40 +/** Echo Congestion flag */ #define TH_CWR 0x80 /* tcp option codes */ diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 85795c1f8a..0188c043bb 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -714,6 +714,7 @@ static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, "toclient":"toserver"); switch (p->tcph->th_flags) { + /** \todo what about ECN/CWR here? */ case TH_SYN: SCLogDebug("ssn %p: SYN packet on state SYN_SENT... resent", ssn); if (ssn->flags & STREAMTCP_FLAG_4WHS)