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

Fixed bug on PacketSender::send_recv which didn't work under OSX and FreeBSD.

This commit is contained in:
Matias Fontanini
2014-02-06 15:10:23 -03:00
parent ea927caa4b
commit fbef2e765d
2 changed files with 42 additions and 8 deletions

View File

@@ -325,6 +325,10 @@ namespace Tins {
SocketTypeMap _types;
uint32_t _timeout, _timeout_usec;
NetworkInterface default_iface;
// In BSD we need to store the buffer size, retrieved using BIOCGBLEN
#if defined(BSD) || defined(__FreeBSD_kernel__)
int buffer_size;
#endif
};
}