wireguard: fix build error with -std=gnu++20

Fixes #4887
This commit is contained in:
Christian Prochaska 2023-05-16 10:15:08 +02:00 committed by Christian Helmuth
parent de986c5f0b
commit e88a84e2ab

View File

@ -37,8 +37,8 @@ class Wireguard::Uplink_connection
using Packet_source =
::Uplink::Packet_stream_source<::Uplink::Session::Policy>;
enum { PACKET_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE };
enum { BUF_SIZE = Uplink::Connection::Session::QUEUE_SIZE * PACKET_SIZE };
static constexpr Genode::size_t PACKET_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE;
static constexpr Genode::size_t BUF_SIZE = Uplink::Connection::Session::QUEUE_SIZE * PACKET_SIZE;
enum class Send_pkt_result { SUCCEEDED, FAILED };