Options.h 1.74 KB
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
7
8
9
10
/*
 * Options.h
 *
 *  Created on: 11.09.2015
 *      Author: jdi
 */

#ifndef OPTIONS_H_
#define OPTIONS_H_

/jdi/'s avatar
/jdi/ committed
11
#include "Types.h"
/jdi/'s avatar
/jdi/ committed
12
13

#define VERSION "smrtlink (v1 Linux)\n"
/jdi/'s avatar
/jdi/ committed
14
#define USAGE "usage: %s [-bdhrvswx] [-i interface] [-u [password:]username]\n\
/jdi/'s avatar
/jdi/ committed
15
16
17
	[-p password] <command>\n\n"
#define HELP "\
	Option Summary:\n\
/jdi/'s avatar
/jdi/ committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
		-h --help		This help text\n\
		-v --version		Display version of this tool\n\
		-d --debug [n]		Show debugging messages\n\
		-r			switch ports to emulate switch while sniffing\n\
		-b --header 		Show header\n\
		-x --hex 		Display Packets as Hex String\n\
		-i --interface <iface>	only use one Interface\n\
		-u --user <[password:]username>\n\
		-p --password <password>\n\
					Login with Username and Password\n\
		-f --file <path>	Not yet implemented:.choose a settings file\n\
		-t --timeout <n>	Not yet implemented\n\
		-w --wait		Not yet implemented: blocking until operation is completed\n\
		-s --permanent		Not yet implemented: make changes immediately permanent\n\n\
/jdi/'s avatar
/jdi/ committed
32
33
34
35
	Command Summary:\n\
		help		This help text\n\
		list		list all connected switches\n\
		sniff		capture and display all incoming or outgoing packets\n\
/jdi/'s avatar
/jdi/ committed
36
				depending on the --reverse option\n\
/jdi/'s avatar
/jdi/ committed
37
		encode		use encoding algorithm on hex data separated by colon\n\
/jdi/'s avatar
/jdi/ committed
38
39
		get		Not yet implemented\n\
		set		Not yet implemented\n\
/jdi/'s avatar
/jdi/ committed
40
41
		save		Not yet implemented: save config to file\n\
		restore		Not yet implemented: restore onfig from file\n\
/jdi/'s avatar
/jdi/ committed
42
43
		flash		Not yet implemented: replace firmware\n\
		reboot		Not yet implemented\n\
/jdi/'s avatar
/jdi/ committed
44
45
		reset		Not yet implemented\n\n\
	### for questions please contact <smrtlink@jdi.li> ###\n\n"
/jdi/'s avatar
/jdi/ committed
46
47
48
49

#define FLAG_HEX 1
#define FLAG_REVERSE 2
#define FLAG_HEADER 4
/jdi/'s avatar
/jdi/ committed
50
51
#define FLAG_PERMANENT 8
#define FLAG_WAIT 16
/jdi/'s avatar
/jdi/ committed
52
#define FLAG_DEBUG 32
/jdi/'s avatar
/jdi/ committed
53
54
55
56

extern Options options;

#endif /* OPTIONS_H_ */