Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2004 23:35:03 -0700 (PDT)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in_pcb.c
Message-ID:  <200405200635.i4K6Z3ni006089@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2004/05/19 23:35:03 PDT

  FreeBSD src repository

  Modified files:
    sys/netinet          in_pcb.c 
  Log:
  When checking for possible port theft, skip over a TCP inpcb
  unless it's in the closed or listening state (remote address
  == INADDR_ANY).
  
  If a TCP inpcb is in any other state, it's impossible to steal
  its local port or use it for port theft.  And if there are
  both closed/listening and connected TCP inpcbs on the same
  localIP:port couple, the call to in_pcblookup_local() will
  find the former due to the design of that function.
  
  No objections raised in:        -net, -arch
  MFC after:                      1 month
  
  Revision  Changes    Path
  1.147     +3 -7      src/sys/netinet/in_pcb.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405200635.i4K6Z3ni006089>