We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d52ec commit ab8fbcbCopy full SHA for ab8fbcb
src/settings/settings.h
@@ -26,11 +26,22 @@ namespace models {
26
char pwd[64]; // Max length of password is 63 + \0
27
};
28
29
+ // this struct represents an ip address in its simplest form.
30
+ // TODO should this stay here?
31
+ // TODO it may be better to check for IPV6 compatibility to reduce size
32
+ struct ip_addr {
33
+ IPType type;
34
+ union {
35
+ uint8_t bytes[16];
36
+ uint32_t dword[4];
37
+ };
38
39
+
40
struct EthernetSetting {
- uint32_t ip;
- uint32_t dns;
- uint32_t gateway;
- uint32_t netmask;
41
+ ip_addr ip;
42
+ ip_addr dns;
43
+ ip_addr gateway;
44
+ ip_addr netmask;
45
unsigned long timeout;
46
unsigned long response_timeout;
47
0 commit comments