template <typename Protocol>
DPDKServerSocketImpl<Protocol>::DPDKServerSocketImpl(
Protocol& proto, uint16_t port, const SocketOptions &opt, int type)
- : ServerSocketImpl<Protocol>(type), _listener(proto.listen(port)) {}
+ : ServerSocketImpl(type), _listener(proto.listen(port)) {}
template <typename Protocol>
int DPDKServerSocketImpl<Protocol>::accept(ConnectedSocket *s, const SocketOptions &options, entity_addr_t *out, Worker *w) {
struct ethernet_address {
ethernet_address() {}
- explicit ethernet_address(const uint8_t *eaddr) {
+ ethernet_address(const uint8_t *eaddr) {
std::copy(eaddr, eaddr + 6, mac.begin());
}
- explicit ethernet_address(std::initializer_list<uint8_t> eaddr) {
+ ethernet_address(std::initializer_list<uint8_t> eaddr) {
assert(eaddr.size() == mac.size());
std::copy(eaddr.begin(), eaddr.end(), mac.begin());
}
struct ethernet {
using address = ethernet_address;
static address broadcast_address() {
- return {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ return {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
}
static constexpr uint16_t arp_hardware_type() { return 1; }
};
eh->src_mac = _hw_address;
eh->eth_proto = uint16_t(l3pv.proto_num);
*eh = eh->hton();
- ldout(cct, 10) << "=== tx === proto " << std::hex << uint16_t(l3pv.proto_num)
+ ldout(this->cct, 10) << "=== tx === proto " << std::hex << uint16_t(l3pv.proto_num)
<< " " << _hw_address << " -> " << l3pv.to
<< " length " << std::dec << l3pv.p.len() << dendl;
p = std::move(l3pv.p);
template <typename X>
friend class lw_shared_ptr;
template <typename X>
- friend class internal::lw_shared_ptr_accessors_esft;
+ friend class ::internal::lw_shared_ptr_accessors_esft;
template <typename X, class Y>
- friend class internal::lw_shared_ptr_accessors;
+ friend class ::internal::lw_shared_ptr_accessors;
};
template <typename T>
template <typename X>
friend class lw_shared_ptr;
template <typename X>
- friend class internal::lw_shared_ptr_accessors_no_esft;
+ friend class ::internal::lw_shared_ptr_accessors_no_esft;
template <typename X, class Y>
- friend class internal::lw_shared_ptr_accessors;
+ friend class ::internal::lw_shared_ptr_accessors;
};
template <typename T>
class lw_shared_ptr {
- using accessors = internal::lw_shared_ptr_accessors<std::remove_const_t<T>>;
+ using accessors = ::internal::lw_shared_ptr_accessors<std::remove_const_t<T>>;
using concrete_type = typename accessors::concrete_type;
mutable lw_shared_ptr_counter_base* _p = nullptr;
private: