From ca79f8ec46105bbac96dcbde4dde8e1fd27abe98 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet@cea.fr>
Date: Sun, 14 Feb 2016 13:27:24 +0100
Subject: [PATCH] TCP: support flag Nonce Sum (N)

Fix proposed by @fredonner. Closes #59.
---
 scapy/layers/inet.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py
index e0836efc..ed61c84d 100644
--- a/scapy/layers/inet.py
+++ b/scapy/layers/inet.py
@@ -440,8 +440,8 @@ class TCP(Packet):
                     IntField("seq", 0),
                     IntField("ack", 0),
                     BitField("dataofs", None, 4),
-                    BitField("reserved", 0, 4),
-                    FlagsField("flags", 0x2, 8, "FSRPAUEC"),
+                    BitField("reserved", 0, 3),
+                    FlagsField("flags", 0x2, 9, "FSRPAUECN"),
                     ShortField("window", 8192),
                     XShortField("chksum", None),
                     ShortField("urgptr", 0),
-- 
GitLab