View | Details | Raw Unified | Return to bug 2263
Collapse All | Expand All

(-)a/src/internet/model/tcp-socket-base.cc (+17 lines)
 Lines 1373-1378   TcpSocketBase::ProcessEstablished (Ptr<Packet> packet, const TcpHeader& tcpHeade Link Here 
1373
    }
1373
    }
1374
}
1374
}
1375
1375
1376
bool
1377
TcpSocketBase::IsTcpOptionEnabled (uint8_t kind) const
1378
{
1379
    NS_LOG_FUNCTION(this << (int)kind);
1380
1381
    switch(kind)
1382
    {
1383
    case TcpOption::TS:
1384
        return m_timestampEnabled;
1385
    case TcpOption::WINSCALE:
1386
        return m_winScalingEnabled;
1387
    default:
1388
        break;
1389
    };
1390
    return false;
1391
}
1392
1376
void
1393
void
1377
TcpSocketBase::ReadOptions (const TcpHeader &tcpHeader)
1394
TcpSocketBase::ReadOptions (const TcpHeader &tcpHeader)
1378
{
1395
{
(-)a/src/internet/model/tcp-socket-base.h (+8 lines)
 Lines 843-848   protected: Link Here 
843
  void ReadOptions (const TcpHeader &tcpHeader);
843
  void ReadOptions (const TcpHeader &tcpHeader);
844
844
845
  /**
845
  /**
846
   * \brief Return true if the specified option is enabled
847
   *
848
   * \param kind kind of TCP option
849
   * \return true if the option is enabled
850
   */
851
  bool IsTcpOptionEnabled (uint8_t kind) const;
852
853
  /**
846
   * \brief Read and parse the Window scale option
854
   * \brief Read and parse the Window scale option
847
   *
855
   *
848
   * Read the window scale option (encoded logarithmically) and save it.
856
   * Read the window scale option (encoded logarithmically) and save it.

Return to bug 2263