Lookup.h 1.26 KB
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
7
/*
 * Switch.cpp
 *
 *  Created on: 29.09.2015
 *      Author: jdi
 */

/jdi/'s avatar
/jdi/ committed
8
#include "lookupTable.h"
/jdi/'s avatar
/jdi/ committed
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
39
40
41
42
43
44
45
46

static lookupTable rcv_lookup = { { 1, "type" }, //string
		{ 2, "hostname" }, //string
		{ 3, "mac" }, //byte[6]
		{ 4, "ip_addr" }, //byte[4]
		{ 5, "ip_mask" }, //byte[4]
		{ 6, "gateway" }, //byte[4]
		{ 7, "firmware_version" }, //string
		{ 8, "hardware_version" }, //string
		{ 9, "dhcp" }, //bool byte
		{ 8704, "802.1q vlan" }, //???
		//{0000," "},
		};

static lookupTable snd_lookup = {

// TODO find out if id is unique in response
		{ 10, "???" }, //after login
		{ 2, "???" }, //after login
		{ 512, "login_user" }, //string
		{ 513, "new_user" }, //string
		{ 514, "login_password" }, //string
		{ 515, "new_passwoord" }, //string
		{ 2200, "vlan" },
		{ 2305, "???" }, //sent before login and before change hostname
		{ 4608, "port_trunk" }, //byte[5] last byte bitmask??
		{ 8192, "mtu_vlan" }, //byte[2] first byte bool,	second byte port id
		{ 8449, "port_vlan" }, //???

		{ 8704, "802.1q vlan" }, //??? get vlan / set status
		{ 8705, "802.1q vlan" }, //???
		{ 8706, "802.1q vlan pvid" }, //????

		{ 12288, "QoS Basic" }, //bool = QoS Mod
		{ 16640, "port_mirror" }, //byte[10] second byte port id??
		{ 17152, "loop_prevention" }, //bool byte
		//{0000," "},
		};