typedef struct NetCfgPacket // 81 bytes { char stx; char cmd; char mac[6]; char wantype; char ip[4]; char gateway[4]; char netmask[4]; char dns[4]; char devicename[32]; char modbusviewip[4]; short modbusviewport; char telnet; char ssh; char ftp; char web; char lan; char bridge; char lanip[4]; char lanmask[4]; char wifi; char ports; char modeltype; char etx; } RP_N ;
// Push current setting and pack to one byte boundary #pragma pack(push, 1) typedef struct NetCfgPacket // 81 bytes { char stx; // ... } RP_N; // Restore previous alignment #pragma pack(pop)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)