5 #define GS_MODEL 0x0001
9 #define GS_SUBNETMSK 0x0007
10 #define GS_GATEWAY 0x0008
12 #define GS_NEWPASSWORD 0x0009
13 #define GS_PASSWORD 0x000a
15 #define GS_FIRMWAREVER 0x000d
17 #define GS_PACKETSTATISTICS 0x1000
19 #define GS_VLAN 0x2800
20 #define GS_PORTSTATUS 0x0c00
21 #define GS_PORTDIAG 0x1c00
22 #define ACT_DHCP 0x000b
25 #define ACT_ADDVLAN 0x2800
26 #define ACT_DELVLAN 0x2c00
27 #define ACT_RESTART 0x0013
28 #define ACT_PORTMIRROR 0x5c00
33 #define QR_ANSWER 0x0102
34 #define QR_EXEC 0x0103
35 #define QR_EXECUTED 0x0104
37 #define MSK_PORT1 0x80
38 #define MSK_PORT2 0x40
39 #define MSK_PORT3 0x20
40 #define MSK_PORT4 0x10
41 #define MSK_PORT5 0x08
46 #define DHCP_RENEW 0x02
62 struct portStatistic {
64 unsigned long bytesIn;
65 unsigned long bytesOut;
72 struct gs105e_settings {
91 struct portStatistic portStatistics[5];
93 struct portSniffing portMonitor;
99 struct gs105e_discovered {
109 struct gs105e_discovered * next;
113 struct gs105e_discovered * gs105e_devs ;
115 struct gs105e_settings settings;
119 void gs105e_init(void) ;
120 void makeHeader(unsigned int queryType);
122 void gs105e_query (void);
124 int gs105e_addVlan(int vlanId) ;
125 int gs105e_delVlan(int vlanId) ;
126 int gs105e_discover(void);
128 int gs105e_setName(char * data);