mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Replace __attribute__ with a macro from types.h
This commit is contained in:
@ -55,7 +55,7 @@ namespace NetworkARP
|
||||
uint32_t SenderIP;
|
||||
uint48_t TargetMAC : 48;
|
||||
uint32_t TargetIP;
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
struct DiscoveredAddress
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ namespace NetworkDHCP
|
||||
uint8_t ServerHostName[64];
|
||||
uint8_t BootFileName[128];
|
||||
uint8_t Options[64];
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
enum DHCPOperation
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace NetworkEthernet
|
||||
uint48_t DestinationMAC : 48;
|
||||
uint48_t SourceMAC : 48;
|
||||
uint16_t Type;
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
struct EthernetPacket
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ namespace NetworkUDP
|
||||
uint16_t DestinationPort;
|
||||
uint16_t Length;
|
||||
uint16_t Checksum;
|
||||
} __attribute__((packed));
|
||||
} __packed;
|
||||
|
||||
struct UDPPacket
|
||||
{
|
||||
|
Reference in New Issue
Block a user