Commits

Joshua Bonsink  committed a0cbe1c

Cleanup and minor changes

  • Participants
  • Parent commits 0e8fc35

Comments (0)

Files changed (2)

File core/ns3/node/imalse_netns_sim_node.py

         source = ns3.Ipv4Address(source)
         destination = ns3.Ipv4Address(destination)
         header = ns3.TcpHeader()
+        header.EnableChecksums()
         header.InitializeChecksum(source, destination, protocol)
         header.SetFlags(SYN)
         header.SetAckNumber(ns3.SequenceNumber32(0))
         header.SetLength(40)        
         header.SetSequenceNumber(ns3.SequenceNumber32(0))
         header.SetSourcePort(1234)
-        header.SetWindowSize(5840)
-        header.Serialize(ns3.Buffer.Iterator())       
+        header.SetWindowSize(5840)               
         packet = ns3.Packet()
         packet.AddHeader(header)
         return packet

File core/real/node.py

         #HTTP header is on the first line
         data = data.splitlines()
         header = data[0].split(' ')
-        print data        
+        
         if header[0] == 'GET' and header[2] == 'HTTP/1.1':    
             #A dot before the slash is needed to open subfolders
             if header[1][1:] == '':