/* * \brief Uplink interface in form of a NIC session component * \author Martin Stein * \date 2016-08-23 */ /* * Copyright (C) 2016-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ /* Genode includes */ #include #include /* local includes */ #include #include using namespace Net; using namespace Genode; Net::Uplink::Uplink(Env &env, Timer::Connection &timer, Genode::Allocator &alloc, Configuration &config) : Nic::Packet_allocator(&alloc), Nic::Connection(env, this, BUF_SIZE, BUF_SIZE), Interface(env.ep(), timer, mac_address(), alloc, Mac_address(), config.domains().find_by_name(Cstring("uplink"))) { rx_channel()->sigh_ready_to_ack(_sink_ack); rx_channel()->sigh_packet_avail(_sink_submit); tx_channel()->sigh_ack_avail(_source_ack); tx_channel()->sigh_ready_to_submit(_source_submit); }