Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/networking/pscan.c

    r2725 r3232  
    66 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    77 */
     8
     9//usage:#define pscan_trivial_usage
     10//usage:       "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
     11//usage:#define pscan_full_usage "\n\n"
     12//usage:       "Scan a host, print all open ports\n"
     13//usage:     "\n    -c  Show closed ports too"
     14//usage:     "\n    -b  Show blocked ports too"
     15//usage:     "\n    -p  Scan from this port (default 1)"
     16//usage:     "\n    -P  Scan up to this port (default 1024)"
     17//usage:     "\n    -t  Timeout (default 5000 ms)"
     18//usage:     "\n    -T  Minimum rtt (default 5 ms, increase for congested hosts)"
    819
    920#include "libbb.h"
     
    7788
    7889        /* The SOCK_STREAM socket type is implemented on the TCP/IP protocol. */
    79         set_nport(lsap, htons(port));
     90        set_nport(&lsap->u.sa, htons(port));
    8091        s = xsocket(lsap->u.sa.sa_family, SOCK_STREAM, 0);
    8192        /* We need unblocking socket so we don't need to wait for ETIMEOUT. */
Note: See TracChangeset for help on using the changeset viewer.