mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Common/Network: Use std::array in IPv4Header.
This commit is contained in:
parent
3a3357444e
commit
f68c3b758e
2 changed files with 4 additions and 4 deletions
|
@ -58,8 +58,8 @@ struct IPv4Header
|
|||
u8 ttl = 0;
|
||||
u8 protocol = 0;
|
||||
u16 header_checksum = 0;
|
||||
u8 source_addr[IPV4_ADDR_LEN]{};
|
||||
u8 destination_addr[IPV4_ADDR_LEN]{};
|
||||
std::array<u8, IPV4_ADDR_LEN> source_addr{};
|
||||
std::array<u8, IPV4_ADDR_LEN> destination_addr{};
|
||||
};
|
||||
static_assert(sizeof(IPv4Header) == IPv4Header::SIZE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue