mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 18:47:01 +00:00
cf72d1aac3
Adds new Uplink session interface, the corresponding client side (Client, Connection), and the corresponding API archives. An Uplink session is almost the same as a NIC session with the difference that the roles of the end points are swapped. An Uplink client is the one that provides a network interface (for instance, a NIC driver) whereas an Uplink server is the one that uses that network interface (for instance, a networking stack). Therefore, in contrast to the NIC session, MAC address and link state come from the Uplink client. The link state is reflected through the lifetime of an Uplink session: The client requests the session only when the link state is "UP" and closes it whenever the link state becomes "DOWN" again. The MAC address is transmitted from the Uplink client to the Uplink server as an argument of the session request. Ref #3961
27 lines
585 B
C++
27 lines
585 B
C++
/*
|
|
* \brief Uplink session capability type
|
|
* \author Martin Stein
|
|
* \date 2020-11-30
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2020 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.
|
|
*/
|
|
|
|
#ifndef _UPLINK_SESSION__CAPABILITY_H_
|
|
#define _UPLINK_SESSION__CAPABILITY_H_
|
|
|
|
/* Genode includes */
|
|
#include <base/capability.h>
|
|
#include <uplink_session/uplink_session.h>
|
|
|
|
namespace Uplink {
|
|
|
|
typedef Genode::Capability<Session> Session_capability;
|
|
}
|
|
|
|
#endif /* _UPLINK_SESSION__CAPABILITY_H_ */
|