Better encapsulation

This commit is contained in:
Baptiste Wicht 2016-09-28 23:21:29 +02:00
parent 24c670c07c
commit 048c5c445d
No known key found for this signature in database
GPG Key ID: C5566B6C7F884532
2 changed files with 4 additions and 4 deletions

View File

@ -73,6 +73,10 @@ struct layer {
private:
network::udp::layer* parent;
std::atomic<bool> listening;
circular_buffer<network::ethernet::packet, 16> packets;
condition_variable listen_queue;
};
} // end of dns namespace

View File

@ -18,10 +18,6 @@
namespace {
std::atomic<bool> listening;
circular_buffer<network::ethernet::packet, 16> packets;
condition_variable listen_queue;
void prepare_packet(network::ethernet::packet& packet, network::interface_descriptor& interface) {
packet.tag(3, packet.index);