merge
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 16 Apr 2008 10:52:38 -0700
changeset 2920 67a8290b9336
parent 2919 d2d179640630 (current diff)
parent 2918 6244ea5e7831 (diff)
child 2921 8a616a8b723a
merge
--- a/src/internet-node/tcp-socket.cc	Wed Apr 16 10:52:26 2008 -0700
+++ b/src/internet-node/tcp-socket.cc	Wed Apr 16 10:52:38 2008 -0700
@@ -695,6 +695,7 @@
       // TCP SYN consumes one byte
       m_nextRxSequence = tcpHeader.GetSequenceNumber() + SequenceNumber(1);
       m_nextTxSequence = tcpHeader.GetAckNumber ();
+      m_firstPendingSequence = m_nextTxSequence;  //bug 166
       NS_LOG_DEBUG ("TcpSocket " << this << " ACK_TX_1" <<
                     " nextRxSeq " << m_nextRxSequence);
       SendEmptyPacket (TcpHeader::ACK);
--- a/src/node/address.cc	Wed Apr 16 10:52:26 2008 -0700
+++ b/src/node/address.cc	Wed Apr 16 10:52:38 2008 -0700
@@ -111,9 +111,10 @@
 
 bool operator == (const Address &a, const Address &b)
 {
-  NS_ASSERT (a.m_type == b.m_type || 
-	     a.m_type == 0 || 
-	     b.m_type == 0);
+  if (a.m_type != b.m_type)
+    {
+      return false;
+    }
   NS_ASSERT (a.GetLength() == b.GetLength());  
   return memcmp (a.m_data, b.m_data, a.m_len) == 0;
 }