1 /*
2  * flags.h -- the struct for the command-line flags of the program
3  *
4  * Part of the tcpick project
5  *
6  * Author: Francesco Stablum <duskdruid @ despammed.com>
7  *
8  * Copyright (C) 2003, 2004  Francesco Stablum
9  * Licensed under the GPL
10  *
11  */
12 
13 /*
14  * Copyright (C) 2003, 2004 Francesco Stablum (duskdruid)
15  * <duskdruid@despammed.com>
16  *
17  * This program is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU General Public License as
19  * published by the Free Software Foundation; either version 2 of the
20  * License, or any later version.
21  *
22  * This program is distributed in the hope that it will be useful, but
23  * WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25  * See the GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111,
30  * USA.
31  */
32 
33 enum FLAVOUR {
34 	RAW = 'R',
35 	PRINTABLE = 'P',
36 	HEX = 'H',
37 	HEX_NON_PRINT = 'U',
38 	HEX_DUMP = 'x',
39 	HEX_ASCII_DUMP = 'X' ,
40 	SILENT = 's',
41 	OTHER /* i.e. packet and status banners */
42 };
43 
44 enum DISPLAYTIME {
45 	NOTHING_TIME = 0, /* default */
46 	ONLYTIME,
47 	TIMEDATE,
48 	ONLYDATE /* not implemented */
49 };
50 
51 struct FLAGS {
52 	int verbosity;
53 	int file;
54 	int filenaming;
55 	int dirs;
56 	int maxconns; /* FIXME: should be developed;
57 			 in the sense of SYN_SENT ?? */
58 	int trackonly;
59 	int trackonly_first;
60 	int exitpackets;
61 	int exitclosed;
62 	int exitclosed_first;
63 	enum DISPLAYTIME displaytime;
64 	int header;
65 	int separator;
66 	int displayoffsets;
67 	int notpromisc;
68 	int notstatus;
69 	enum FLAVOUR display_payload;
70 	struct {
71 		enum FLAVOUR flavour;
72 		enum PART side;
73 	} display_rebuild;
74 	struct {
75 		enum FLAVOUR flavour;
76 		enum {SEPARATE = 0, UNIQUE} type;
77 		int banner;
78 		enum PART side;
79 	} writer;
80 	int helpandquit;
81 	int versionandquit;
82 	int lookup;
83 	int numericalports;
84 	int color;
85 	int colortrack;
86 	int timeout;
87 };
88 
89 
90