21 #include <boost/lexical_cast.hpp> 23 #include <senf/PPI.hh> 61 eth(senf::EthernetPacket::create()),
69 eth->destination() = dst_;
70 mpls->label() = label;
73 senf::DataPacket
data (senf::DataPacket::createAfter(tim, 1500u - mpls.
size()));
81 tim->sequenceNumber() = seqNo;
82 tim->linkLocalSeqNo() = seqNo;
83 seqNo = (seqNo + 1) % (wiback::TIMPacketParser::sequenceNumber_t::max_value + 1);
86 nextTimeout += period;
91 void bitrate(
unsigned brate_in_kbps)
93 if (brate_in_kbps == 0) {
99 nextTimeout = senf::scheduler::now();
config::time_type clock_type
static SENF_CLOCKSERVICE_CONSTEXPR int64_type in_milliseconds(clock_type const &v)
u8 data[SPECTRAL_HT20_NUM_BINS]
StatsDataCollectorKernel bitrate
boost::function< R(Args)> membind(R(T::*fn)(Args), T *ob)
void timeout(ClockService::clock_type const &timeout, bool initiallyEnabled=true)
static SENF_CLOCKSERVICE_CONSTEXPR clock_type microseconds(int64_type const &v)
#define SENF_PPI_MODULE(name)
ConcretePacket< EthernetPacketType > EthernetPacket
static ConcretePacket createAfter(Packet const &packet)
HardwareEthernetInterface public header.
HardwareWLANInterface public header.