libtins
libtins copied to clipboard
High-level, multiplatform C++ network packet sniffing and crafting library.
Hello and thanks for your work! I have a question about using a Sniffer. I use Sniffer like this: ``` // Init Tins::SnifferConfiguration snifferConfiguration; snifferConfiguration.set_promisc_mode(true); std::unique_ptr sniffer = std::make_unique(interfaceName, snifferConfiguration);...
replace with direct typedefs
Most of the dhcp acks in this packet capture are getting categorized as malformed. E.g : 192.168.1.172, 192.168.1.166, 192.168.1.159 Can you please let me know the possible reason. [dhcpissue.zip](https://github.com/mfontanini/libtins/files/8759993/dhcpissue.zip)
Say I want to choose specific interface ad then sending a packet to specific IP through this interface [acts like a gateway] using this definition is not possible: /** *...
Updated to Fedora 36 with gcc 12.1, got deprecation warnings: ``` [ 16%] Building CXX object lib/libtins/src/CMakeFiles/tins.dir/handshake_capturer.cpp.o libtins/src/crypto.cpp: In member function ‘Tins::SNAP* Tins::Crypto::WPA2::SessionKeys::ccmp_decrypt_unicast(const Tins::Dot11Data&, Tins::RawPDU&) const’: libtins/src/crypto.cpp:489:24: warning: ‘int AES_set_encrypt_key(const...
Hey there, how do I tell the PacketWriter which timestamp to write when I use a custom PDU? `void write(PDU& pdu, const struct timeval& tv);` is private and `void PacketWriter::write(PDU&...
If you `make install` libtins to the system's default location, a user only needs to do: ```cmake find_package(libtins CONFIG REQUIRED) target_link_libraries(mytarget PUBLIC tins) ``` and `#include ` works because the...
Hi. I confirmed that Sniffer works normally with my wired LAN. I tried to use Sniffer as loopback (localhost), but the following error occurs in the code below. code: Sniffer(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)...
The FAQ states that `set_immediate_mode` would be sufficient to disable buffering for latency sensitive applications. On windows however the latency after setting `set_immediate_mode` to true is still around 1 second....