[BACK]Return to netcat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nc

Diff for /src/usr.bin/nc/netcat.c between version 1.17 and 1.18

version 1.17, 2000/09/26 18:53:13 version 1.18, 2000/12/01 02:25:58
Line 37 
Line 37 
 #include <netinet/in_systm.h>  #include <netinet/in_systm.h>
 #include <netinet/ip.h>  #include <netinet/ip.h>
 #include <arpa/inet.h>  #include <arpa/inet.h>
   #include <arpa/nameser.h>
 #include <netdb.h>              /* hostent, gethostby*, getservby* */  #include <netdb.h>              /* hostent, gethostby*, getservby* */
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 45 
Line 46 
 #include <setjmp.h>  #include <setjmp.h>
 #include <signal.h>  #include <signal.h>
 #include <fcntl.h>  #include <fcntl.h>
   #include <resolv.h>
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  #include <unistd.h>
Line 686 
Line 688 
  * trick for getting the RTT.  [I got that idea from pluvius, and warped it.]   * trick for getting the RTT.  [I got that idea from pluvius, and warped it.]
  * Return either the original fd, or clean up and return -1.   * Return either the original fd, or clean up and return -1.
  */   */
   int
 udptest(fd, where)  udptest(fd, where)
         int     fd;          int     fd;
         struct in_addr     *where;          struct in_addr     *where;
Line 1335 
Line 1338 
  */   */
 void  void
 nlog(doexit, fmt)  nlog(doexit, fmt)
           int doexit;
         char *fmt;          char *fmt;
 {  {
         va_list args;          va_list args;
Line 1359 
Line 1363 
   
 void  void
 usage(doexit)  usage(doexit)
           int doexit;
 {  {
         fprintf(stderr, "netcat - [v1.10]\n");          fprintf(stderr, "netcat - [v1.10]\n");
         fprintf(stderr, "nc [-lnrtuvz] [-e command] [-g intermediates]\n");          fprintf(stderr, "nc [-lnrtuvz] [-e command] [-g intermediates]\n");

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18