Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/networking/pscan.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/networking/pscan.c
r2725 r3232 6 6 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 7 */ 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)" 8 19 9 20 #include "libbb.h" … … 77 88 78 89 /* 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)); 80 91 s = xsocket(lsap->u.sa.sa_family, SOCK_STREAM, 0); 81 92 /* We need unblocking socket so we don't need to wait for ETIMEOUT. */
Note:
See TracChangeset
for help on using the changeset viewer.