File: help.c

package info (click to toggle)
sing 1.1-9sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,464 kB
  • ctags: 2,092
  • sloc: ansic: 20,745; sh: 4,778; makefile: 718; yacc: 234; lex: 203
file content (38 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**********************************************/
/* This is only the help part of the program. */
/* See the man page for further details.      */
/**********************************************/
#ifndef lint
static const char rcsid[] = 
       "$Id: help.c,v 1.10 2001/02/08 08:45:00 slay Exp $";
#endif

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdio.h>

void
help(void)
{
  printf("\nUsage: %s [-RnvqQOGBU] [-c count] [-T wait] [-p pattern] [-s garbagesize]\n", PACKAGE);
  printf("       [-t ttl] [-TOS tos] [-F bytes] [-i interface] [-S spoof addr] [-L file]\n");
  printf("       [-MAC hw_addr] [type] host\n");
  printf("Type:\n");
  printf("  -echo    Echo Request (default).   -reply  Echo Reply\n");
  printf("  -du      Destination Unreach.      -info   Information Request\n");
  printf("  -mask    Address Mask Request.     -param  Parameter Problem\n");
  printf("  -rta     Router Advertisement      -rts    Router Solicitation\n");
  printf("  -red     Redirect                  -sq     Source Quench\n"); 
  printf("  -tstamp  Timestamp                 -tx     Time Exceeded\n");
  printf("  -h       This help screen          -V      Program version\n");
  printf("  -v       Verbose mode on\n\n");
  printf("Host:\n");
  printf("   host                          Sending to a host.\n");
  printf("   router1%%router2%%router3%%host  Sending with Strict Source Routing.\n");
  printf("   router1@router2@router3@host  Sending with Loose Source Routing.\n\n");
  printf("Please, see the man page for a full list of options and many examples.\n");  
  printf("Send your bugs & suggestions to Alfredo Andres, Slay <aandres@s21sec.com>\n\n");  
  exit(0);
}