tcp ports ftp hangs in CLOSE_WAIT state with NMAP scanner


    Sponsored Links


  • 1. Region allocation and tasks under vxworks-memory mgmnt query
    dear all, I read in psos document that dynamically requesting for regions are possible and also one thing which i could not understand is its given in psos manual (unaware of vxworks!!!) that the task requested the region is not the owner of it and it can pass segments and regions allocated(which is returned after region/segment creation/request call)across my query is,the how is memory protection done?and for that case since theres no owner ship of regions as mentioned in manual of psos,then how is safety ensured when a task requesting region and once its given ,its used simultanously by other tasks and how racing is prevented?I have no documents relating to mgmnt of vxworks memory,but psos is available and i could not come to a conclusion of how this is possible? It will be helpful if some one could help me understand how this is implemented both in psos as well as vxworks. I have both psos/vxworks in our co and i am dealing with both and i have following environments: vxworks: windows 2k host/vxworks 5.4,tornado2.0,x86 target board. psos: prism+1.2,psos2.2.7,windows98 host,x86 target board. advanced thanks for all your replies, regards, s.subbarayan
  • 2. regarding PowerPC
    Dear All, We are using PMC module on PowerPC,in Intel we will use sysMumMapAdd to map the physical memory to virtual memory,such mapping is required for PowerPC,if so, should I do the same thing for PowerPc? or should i use any other function to do the same. Thanks and regards Rajesh
  • 3. about zbufSockBufSend
    There is following depiction In Chapter7.3, Zbuf Sockets of VxWorks Network Programmer's Guide: " The zbuf socket calls are particularly useful when large data transfer is a significant part of your socket application. For example, many socket applications contain sections of code like the following fragment: pBuffer = malloc (BUFLEN); while ((readLen = read (fdDevice, pBuffer, BUFLEN)) > 0) write (fdSock, pBuffer, readLen); You can eliminate the overhead of copying from the application buffer pBuffer into the internal socket buffers by changing the code to use zbuf socket calls. " I wonder what scale of the data can be called "large". Errors occurred when I called zbufSockBufSend(s, buf, len, (VOIDFUNCPTR)freeCallback, 0, 0)) where parameter len is larger than the default size of a socket(8192 Bytes), No error happened when I called send() to send data larger than 8192 Bytes or zbufSockBufSend() to send data less than 8192 Bytes. In one of my earlier program,I use send() to send data of 1K Bytes.And I found that it takes cpu 53 us to executes send() (packing TCP package, copying data into socket buffers...), I want to call zbufSockBufSend() instead to reduce the cpu time, but it seems useless. The cpu time didn't decrease. I want to know more about zbuf, when it works usefully? And how I can reduce the cpu time of sending data through a TCP socket? Thanks ZhuHaitao
  • 4. memory management and vxworks
    Dear gurus, Have any one got any document or know how vxworks manages memory?Basically i am looking for something like region and buffer allocation algorithms present in psos.I have searched all the vxworks manual supplied but could not get this info. can anyone point me to this document also let me know,what memory related calls are offered in vxworks?in psos we have getreg,setreg,getsegment like this.I am looking for similar calls here also.i.e to get a region,segment,buffer etc. advanced thanks to all ur replies, Regards, s.subbarayan

tcp ports ftp hangs in CLOSE_WAIT state with NMAP scanner

Postby lstrong » Sun, 11 Mar 2007 02:58:49 GMT

I have been using NMAP to scan all the open ports on my equipment
which runs VxWorks Version 5.3.1. The scanner some times causes hung
CLOSE_WAITS on the FTP port 21.
Eventually after 8 such CLOSE_WAIT connections, FTP server hangs.

I came across this posting:
 http://www.**--****.com/ %2Fgroup%2Fcomp.os.vxworks%2Fbrowse_frm%2Fthread%2Fb372bdd8faafe028%2F9d5ba83a4c9a769c%3Fhl%3Den%26#doc_f07a1f9ffd8b886c

I'm seeing the same problem with my FTP server too. Whenever I run
scan the ports, my FTP server hangs with 8 connections in CLOSE_WAIT

I could not find the fix for this problem.

If you have come across the same problem or know the fix for this
problem please let me know.

Thanks in advance.

Re: tcp ports ftp hangs in CLOSE_WAIT state with NMAP scanner

Postby Bill Pringlemeir » Sun, 11 Mar 2007 07:36:08 GMT

You can reproduce the same thing on Linux, etc.  However the amount of
connections would likely be higher.  If NMAP (or anything) cause a
hanging CLOSE state, the TCP rfc say that this should remain in the
CLOSE_WAIT state for six hours or something insane like that.

You can increase the amount of sockets available.  There might also be
a "CLOSE_WAIT" timer variable that can be changed to not wait for the
full close handshaking.  I think that Windows might also perform a
truncated CLOSE sequence.

Bill Pringlemeir.

My cousin is an agoraphobic {*filter*}, which makes it kind of hard
for him to come out of the closet. - Bill Kelly
vxWorks FAQ, " http://www.**--****.com/ ~borkhuis/vxworks/vxworks.html"

Similar Threads:

1.Hiding a PIX from nmap and port-scanners.

Tests with PixOS 6.2(2) report:

ICMP Access prohibited (3/13) for ports 23 and 1467 and RST on every other port. 
  Upper management would like the pix to be invisible from the outside, without 
putting a router with ACLs in from of it, is it possible?

Francois Labreque | The surest sign of the existence of extra-
     flabreque     | terrestrial intelligence is that they never
         @         | bothered to come down here and visit us!    |                             - Calvin

2.Anybody using Nmap::Scanner?

I'm having difficulties with that module
because it cannot leverage nmap's ability
to take arguments ftom stdin.

After having looked at it, it seems I may
get off by subclassing Nmap::Scanner and
override the scan() function in order to
build a $processor which is in turn a sub-
class of Nmap::Scanner::Backend::XML that
uses ISC::Open2.

I'm quite new to Perl, so I will appreciate
your suggestions very much. In particular,
as it would be easier to patch the original
Nmap::Scanner, I'd be glad to know if you
think that those subclasses would be of
interest to someone, i.e. if that will be
anything worth being registered at PAUSE.

(I tried to reach the original Author, but
did not succeed.)


3.Nmap::Scanner & XML::SAx problems

I am new to perl and quite rusty in programming, but I am trying to
create  pwerl scrip to scan the ports on a machine in a local
network.However whehn I go to run the script I get the following error
"Can't call a method "as_XML" on an undefined value at

Basically I want to get the user to
enter a computer name
take that nme as STDIN
Print port information for that nachine

Any help apreciated

use Nmap::Scanner;
use XML::SAX;

  #  Batch scan method

  my $scanner = new Nmap::Scanner;

  #   $results is an instance of Nmap::Scanner::Backend::Results
  my $results = $scanner->scan();

  #  Print the results out as an well-formatted XML document
  print $results->as_xml();

  #  Event scan method using *new* easier way to set scan options.

  my $scanner = new Nmap::Scanner;
  $scanner->scan('-sS -p 1-1024 -O --max-rtt-timeout 200');

  sub scan_started {
      my $self     = shift;
      my $host     = shift;

      my $hostname = $host->name();
      my $addresses = join(',', map {$_->address()}
      my $status = $host->status();

      print "$hostname ($addresses) is $status\n";

  sub port_found {
      my $self     = shift;
      my $host     = shift;
      my $port     = shift;

      my $name = $host->name();
      my $addresses = join(',', map {$_->addr()}


      print "On host $name ($addresses), found ",
            $port->state()," port ",

4.Sharing a scanner over TCP/IP


We used to be able to share scanners over the network with early versions of
Windows (much like we did printers). Microsoft's KB article Q304097 clearly
states that this is no longer possible. Why is this? I would like to access
an HP ScanJet 5300C scanner connected through USB to an XP-based system from
another XP-based machine. Can this be done in any way?


Nicolas Harnois
Montreal, Canada

5.Scanner/Printer on TCP/IP

6. The TCP... settings block my port scanners(kazaa,warez,etc)

7. Port scanner shows ports open

8. Film Scanners - State of Art ?

Return to VxWorks


Who is online

Users browsing this forum: No registered users and 61 guest