Replace __attribute__ with a macro from types.h

This commit is contained in:
Alex
2023-04-07 05:22:14 +03:00
parent 7fa3e91a53
commit 98c137566d
22 changed files with 69 additions and 69 deletions

View File

@ -55,7 +55,7 @@ namespace NetworkARP
uint32_t SenderIP;
uint48_t TargetMAC : 48;
uint32_t TargetIP;
} __attribute__((packed));
} __packed;
struct DiscoveredAddress
{

View File

@ -42,7 +42,7 @@ namespace NetworkDHCP
uint8_t ServerHostName[64];
uint8_t BootFileName[128];
uint8_t Options[64];
} __attribute__((packed));
} __packed;
enum DHCPOperation
{

View File

@ -36,7 +36,7 @@ namespace NetworkEthernet
uint48_t DestinationMAC : 48;
uint48_t SourceMAC : 48;
uint16_t Type;
} __attribute__((packed));
} __packed;
struct EthernetPacket
{

View File

@ -139,7 +139,7 @@ namespace NetworkNTP
* @note Only when the NTP authentication scheme is used
*/
// uint32_t MessageAuthenticationCode;
} __attribute__((packed));
} __packed;
class NTP : public NetworkUDP::UDPEvents
{

View File

@ -31,7 +31,7 @@ namespace NetworkUDP
uint16_t DestinationPort;
uint16_t Length;
uint16_t Checksum;
} __attribute__((packed));
} __packed;
struct UDPPacket
{