Options.h 1.59 KB
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Options.h
 *
 *  Created on: 11.09.2015
 *      Author: jdi
 */

#ifndef OPTIONS_H_
#define OPTIONS_H_

#include "Types.h"

#define VERSION "smrtlink (v1 Linux)\n"
#define USAGE "usage: %s [-bhrvx] [-i interface] [-u [password:]username]\n\
	[-p password] <command>\n\n"
#define HELP "\
/jdi/'s avatar
/jdi/ committed
17
	### for questions please contact <smrtlink@jdi.li> ###\n\
/jdi/'s avatar
/jdi/ committed
18
19
20
21
22
23
24
25
	Option Summary:\n\
		-h --help	This help text\n\
		-v --version	Display version of this tool\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	only use one Interface\n\
		-u --user 	Login with user\n\
/jdi/'s avatar
/jdi/ committed
26
27
28
		-p		Password\n\
		-f --file	Not yet implemented:.choose a settings file\n\
		-t --timeout	Not yet implemented\n\
/jdi/'s avatar
/jdi/ committed
29
		-w --wait	Not yet implemented: blocking until operation is completed\n\
/jdi/'s avatar
/jdi/ committed
30
		-s --permanent	Not yet implemented: make changes immediately permanent\n\n\
/jdi/'s avatar
/jdi/ committed
31
32
33
34
	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
35
				depending on the --reverse option\n\
/jdi/'s avatar
/jdi/ committed
36
		encode		use encoding algorithm on hex data separated by colon\n\
/jdi/'s avatar
/jdi/ committed
37
38
		get		Not yet implemented\n\
		set		Not yet implemented\n\
/jdi/'s avatar
/jdi/ committed
39
40
		save		Not yet implemented: save config to file\n\
		restore		Not yet implemented: restore onfig from file\n\
/jdi/'s avatar
/jdi/ committed
41
42
43
		flash		Not yet implemented: replace firmware\n\
		reboot		Not yet implemented\n\
		reset		Not yet implemented\n\n"
/jdi/'s avatar
/jdi/ committed
44
45
46
47

#define FLAG_HEX 1
#define FLAG_REVERSE 2
#define FLAG_HEADER 4
/jdi/'s avatar
/jdi/ committed
48
49
#define FLAG_PERMANENT 8
#define FLAG_WAIT 16
/jdi/'s avatar
/jdi/ committed
50
51
52
53

extern Options options;

#endif /* OPTIONS_H_ */