Rename dhcpMode to DST_TimezoneOffset.
Describtion by Fernando Silva: While most TZs are integer, there are half time zones: Venezuela/Caracas, for example, is GMT -4.5 and Kabul GMT +4.5. It is awkward, but we found that these "half time zones" are identified by the second least significant bit of byte 161 (yes, the same used for DST). Therefore, we have the following possible combinations for byte 161: - 00: integer TZ, DST on - 01: integer TZ, DST off - 02: half TZ, DST on - 03: half TZ, DST off As a reference, one may consider the following examples: - Azores (GMT-1), DST on: byte 161 = 00, byte 164 = FF - Caracas (GMT-4.5), DST off: byte 161 = 03, byte 164 = FC - Paris (GMT+1), DST off: byte 161 = 01, byte 164 = 01 - Kabul (GMT+4.5), DST on: bute 161 = 02, byte 164 = 04
This commit is contained in:
parent
4239cc9098
commit
99b2ed9d58
File diff suppressed because one or more lines are too long
2
socket.h
2
socket.h
|
@ -99,7 +99,7 @@ private:
|
|||
QByteArray localIP; // same as QHostAddress ip but in QByteArray, maybe fix later...
|
||||
QByteArray localGatewayIP;
|
||||
QByteArray localNetMask;
|
||||
QByteArray dhcpNode;
|
||||
QByteArray DST_TimezoneOffset;
|
||||
QByteArray discoverable;
|
||||
QByteArray timeZoneSet;
|
||||
QByteArray socketTableNumber, socketTableVersion, timingTableNumber, timingTableVersion; // FIXME: not used yet
|
||||
|
|
Loading…
Reference in New Issue