~ubuntu-branches/ubuntu/breezy/knocker/breezy

« back to all changes in this revision

Viewing changes to src/knocker_args.h

  • Committer: Bazaar Package Importer
  • Author(s): Pablo Lorenzzoni
  • Date: 2004-02-23 13:38:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040223133839-8nkw6632is003mrp
Tags: 0.7.1-2
* Upgraded Standard-Version
* Add URL to the description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* knocker version 0.6.0
2
 
 * Release date: 17 February 2002
 
1
/* knocker version 0.7.1
 
2
 * Release date: 24 May 2002
3
3
 *
4
4
 * Project homepage: http://knocker.sourceforge.net
5
5
 *
30
30
#define HOST_SHORT_OPT "-H"
31
31
#define HOST_LONG_OPT  "--host"
32
32
 
 
33
  /* host to scan, got with lasthost  */
 
34
#define LAST_HOST_LONG_OPT  "--last-host"
 
35
 
33
36
  /* single port number */
34
37
#define SINGLE_PORT_SHORT_OPT "-P"
35
38
#define SINGLE_PORT_LONG_OPT  "--port"
44
47
 
45
48
  /* Log scan results to file */
46
49
#define ENABLE_LOGFILE_SHORT_OPT "-lf"
47
 
#define ENABLE_LOGFILE_LONG_OPT  "--enable-logfile"
 
50
#define ENABLE_LOGFILE_LONG_OPT  "--logfile"
48
51
 
49
52
  /* disable output to stdout, disable threads */
50
 
#define QUIET_MODE_SHORT_OPT "-qm"
51
 
#define QUIET_MODE_LONG_OPT "--quiet-mode"
 
53
#define QUIET_MODE_SHORT_OPT "-q"
 
54
#define QUIET_MODE_LONG_OPT "--quiet"
 
55
 
 
56
  /* option to disable fency cool out put */
 
57
#define NO_FENCY_SHORT_OPT "-nf"
 
58
#define NO_FENCY_LONG_OPT  "--no-fency"
52
59
 
53
60
  /* option to disable colored out put */
54
61
#define NO_COLORS_SHORT_OPT "-nc"
55
62
#define NO_COLORS_LONG_OPT  "--no-colors"
56
63
 
 
64
 /* option --last-scan, reperforms the last port scan */
 
65
#define LAST_SCAN_LONG_OPT "--last-scan"
 
66
 
 
67
 /* option --configure, let the usere configure knocker */
 
68
#define CONFIGURE_LONG_OPT "--configure"
 
69
 
 
70
#define WIN32_FRONTEND_SHORT_OPT "--win32-frontend"
 
71
#define WIN32_FRONTEND_LONG_OPT "--win32-frontend"
 
72
 
57
73
#define HELP_SHORT_OPT    "-h"
58
74
#define HELP_LONG_OPT     "--help"
59
75
 
65
81
typedef struct {
66
82
  char           *hname;      /* hostname string */
67
83
  char           *hip;        /* host IP string  */
 
84
  char           *lfname;     /* logfile name */
68
85
  unsigned int   port;        /* Single port number, -P */
69
86
  unsigned int   sport;       /* Start port number, -SP */
70
87
  unsigned int   eport;       /* End port number, -EP   */
71
88
  int logfile;     /* log to file TRUE,FALSE */
72
89
  int quiet;       /* quiet mode TRUE,FALSE  */
73
90
  int colors;      /* no colors, TRUE,FALSE  */
 
91
  int fency;       /* fency output, TRUE, FALSE */
 
92
  int win32_frontend;
74
93
} knocker_args_t;
75
94
 
76
95
 
93
112
int  knocker_args_parse (knocker_args_t *args, int argc, char *argv[]);
94
113
 
95
114
/*
96
 
 This tells (returning TRUE or FALSE) the if an option is enabled or not.
 
115
 This tells knocker (returning TRUE or FALSE) if an option is enabled or not.
97
116
*/
98
117
/* int  knocker_args_argument (knocker_args_t *args, unsigned short argument); */
99
118