17 #ifndef HH_SENF_Ext_NetEmu_Ethernet_HardwareEthernetInterface_ 18 #define HH_SENF_Ext_NetEmu_Ethernet_HardwareEthernetInterface_ 1 41 :
private detail::HardwareEthernetInterfaceNet,
53 std::string
const &
v_device()
const override;
64 void sndBuf(
unsigned sndbuf);
66 void rcvBuf(
unsigned rcvbuf);
68 unsigned qlen()
const;
72 std::tuple<unsigned,unsigned,unsigned>
txDropped();
91 virtual unsigned v_mtu()
const override;
92 virtual void v_mtu(
unsigned v)
override;
99 virtual bool v_enabled()
const override;
100 virtual void v_id(
MACAddress const &
id)
override;
101 virtual bool v_annotationMode()
const override;
102 virtual void v_annotationMode(
bool a)
override;
103 virtual bool v_promisc()
const override;
104 virtual void v_promisc(
bool v)
override;
105 virtual void v_mcAdd(
MACAddress const & address)
override;
106 virtual void v_mcDrop(
MACAddress const & address)
override;
107 virtual void v_flushRxQueues()
override;
108 virtual void v_flushTxQueues()
override;
115 unsigned rcvBufSize_;
116 unsigned sndBufSize_;
122 friend struct detail::HardwareEthernetInterfaceNet;
void setREDFilterCallbackTx(senf::ppi::REDFilterCallback const &cb)
WLANController public header.
std::uint32_t vlanMismatchTx()
virtual ~HardwareEthernetInterface()
HardwareEthernetInterface(std::string const &name)
TypedInterfaceDecorator< HardwareEthernetInterface, Interface::Decorator > Decorator
void setREDFilterCallbackRx(senf::ppi::REDFilterCallback const &cb)
std::tuple< unsigned, unsigned, unsigned > txDropped()
void dumpMmapStats(std::ostream &os)
std::uint32_t vlanMismatchRx()
virtual unsigned v_mtu() const override
Called to get interface MTU.
Hardware Ethernet Interface.
unsigned maxBurst() const
VLanId const & pvid() const
Hardware interface base class.
EthernetController & ethController()
std::string const & v_device() const override
std::pair< unsigned, unsigned > rxDropped()
Specialized Interface decorator base-class.
virtual void v_disable() override
Called to disable interface.
Generic Interface decorator base-class.
Control ethernet interfaces.
EthernetInterface public header.
virtual void v_enable() override
Called to enable interface.