mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 03:01:40 +02:00
implemented #318 static IP support
This commit is contained in:
parent
ea991a7723
commit
ca8142e781
7 changed files with 96 additions and 2 deletions
|
@ -126,6 +126,17 @@ typedef struct {
|
|||
#pragma pack(pop) // restore original alignment from stack
|
||||
|
||||
|
||||
#pragma pack(push) // push current alignment to stack
|
||||
#pragma pack(1) // set alignment to 1 byte boundary
|
||||
typedef struct {
|
||||
uint8_t ip[4]; // ip address
|
||||
uint8_t mask[4]; // sub mask
|
||||
uint8_t dns[4]; // dns
|
||||
uint8_t gateway[4]; // standard gateway
|
||||
} staticIp_t;
|
||||
#pragma pack(pop) // restore original alignment from stack
|
||||
|
||||
|
||||
#pragma pack(push) // push current alignment to stack
|
||||
#pragma pack(1) // set alignment to 1 byte boundary
|
||||
typedef struct {
|
||||
|
@ -160,8 +171,8 @@ typedef struct {
|
|||
bool serialShowIv;
|
||||
bool serialDebug;
|
||||
|
||||
// static ip placeholder
|
||||
uint32_t staticIp[4];
|
||||
// static ip
|
||||
staticIp_t staticIp;
|
||||
} config_t;
|
||||
#pragma pack(pop) // restore original alignment from stack
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue