1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 21:44:26 +01:00

Rolled the BaseSniffer changes since that was OK.

This commit is contained in:
Matias Fontanini
2013-09-20 12:37:21 -03:00
parent 96ecd054ab
commit 1b4efc1520
2 changed files with 4 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ namespace Tins {
* This constructor is available only in C++11.
*/
BaseSniffer(BaseSniffer &&rhs) noexcept
: handle(nullptr), mask(), prog()
: handle(nullptr), mask()
{
*this = std::move(rhs);
}
@@ -90,7 +90,6 @@ namespace Tins {
using std::swap;
swap(handle, rhs.handle);
swap(mask, rhs.mask);
swap(prog, rhs.prog);
return *this;
}
#endif
@@ -242,7 +241,6 @@ namespace Tins {
pcap_t *handle;
bpf_u_int32 mask;
bpf_program prog;
};
/**