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

(-)a/src/internet-stack/tcp-socket-impl.cc (+6 lines)
 Lines 456-461    Link Here 
456
TcpSocketImpl::Listen (void)
456
TcpSocketImpl::Listen (void)
457
{
457
{
458
  NS_LOG_FUNCTION (this);
458
  NS_LOG_FUNCTION (this);
459
  //linux quits EINVAL if we're not closed, so match what they do
460
  if (m_state != CLOSED)
461
    {
462
      m_errno = ERROR_INVAL;
463
      return -1;
464
    }
459
  Actions_t action = ProcessEvent (APP_LISTEN);
465
  Actions_t action = ProcessEvent (APP_LISTEN);
460
  ProcessAction (action);
466
  ProcessAction (action);
461
  return 0;
467
  return 0;

Return to bug 358