1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Use recvfrom on BSD/OSX when capturing layer 3 packets

Fixes #147
This commit is contained in:
Matias Fontanini
2016-05-03 19:34:46 -07:00
parent 269ac164ed
commit d7fed87ebb
2 changed files with 17 additions and 8 deletions

View File

@@ -399,7 +399,8 @@ private:
PDU* recv_match_loop(const std::vector<int>& sockets,
PDU& pdu,
struct sockaddr* link_addr,
uint32_t addrlen);
uint32_t addrlen,
bool is_layer_3);
std::vector<int> sockets_;
#ifndef _WIN32