libtins/4.5

High-level, multiplatform C++ network packet sniffing and crafting library.
Recipe info
2023-12-05

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libtins/4.5

Using libtins

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libtins/4.5
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libtins/4.5")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): libtins
  • CMake target name(s): libtins::libtins
  • pkg-config file name(s): libtins.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(libtins REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libtins::libtins)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libtins homepage listed above:

#include "tins/address_range.h"
#include "tins/arp.h"
#include "tins/bootp.h"
#include "tins/config.h"
#include "tins/constants.h"
#include "tins/crypto.h"
#include "tins/cxxstd.h"
#include "tins/data_link_type.h"
#include "tins/detail/address_helpers.h"
#include "tins/detail/icmp_extension_helpers.h"
#include "tins/detail/pdu_helpers.h"
#include "tins/detail/sequence_number_helpers.h"
#include "tins/detail/smart_ptr.h"
#include "tins/detail/type_traits.h"
#include "tins/dhcp.h"
#include "tins/dhcpv6.h"
#include "tins/dns.h"
#include "tins/dot11.h"
#include "tins/dot11/dot11_assoc.h"
#include "tins/dot11/dot11_auth.h"
#include "tins/dot11/dot11_base.h"
#include "tins/dot11/dot11_beacon.h"
#include "tins/dot11/dot11_control.h"
#include "tins/dot11/dot11_data.h"
#include "tins/dot11/dot11_mgmt.h"
#include "tins/dot11/dot11_probe.h"
#include "tins/dot1q.h"
#include "tins/dot3.h"
#include "tins/eapol.h"
#include "tins/endianness.h"
#include "tins/ethernetII.h"
#include "tins/exceptions.h"
#include "tins/handshake_capturer.h"
#include "tins/hw_address.h"
#include "tins/icmp.h"
#include "tins/icmp_extension.h"
#include "tins/icmpv6.h"
#include "tins/ieee802_3.h"
#include "tins/internals.h"
#include "tins/ip.h"
#include "tins/ip_address.h"
#include "tins/ip_reassembler.h"
#include "tins/ipsec.h"
#include "tins/ipv6.h"
#include "tins/ipv6_address.h"
#include "tins/llc.h"
#include "tins/loopback.h"
#include "tins/macros.h"
#include "tins/memory_helpers.h"
#include "tins/mpls.h"
#include "tins/network_interface.h"
#include "tins/offline_packet_filter.h"
#include "tins/packet.h"
#include "tins/packet_sender.h"
#include "tins/packet_writer.h"
#include "tins/pdu.h"
#include "tins/pdu_allocator.h"
#include "tins/pdu_cacher.h"
#include "tins/pdu_iterator.h"
#include "tins/pdu_option.h"
#include "tins/pktap.h"
#include "tins/ppi.h"
#include "tins/pppoe.h"
#include "tins/radiotap.h"
#include "tins/rawpdu.h"
#include "tins/rsn_information.h"
#include "tins/sll.h"
#include "tins/small_uint.h"
#include "tins/snap.h"
#include "tins/sniffer.h"
#include "tins/stp.h"
#include "tins/tcp.h"
#include "tins/tcp_ip/ack_tracker.h"
#include "tins/tcp_ip/data_tracker.h"
#include "tins/tcp_ip/flow.h"
#include "tins/tcp_ip/stream.h"
#include "tins/tcp_ip/stream_follower.h"
#include "tins/tcp_ip/stream_identifier.h"
#include "tins/tcp_stream.h"
#include "tins/timestamp.h"
#include "tins/tins.h"
#include "tins/udp.h"
#include "tins/utils.h"
#include "tins/utils/checksum_utils.h"
#include "tins/utils/frequency_utils.h"
#include "tins/utils/pdu_utils.h"
#include "tins/utils/radiotap_parser.h"
#include "tins/utils/radiotap_writer.h"
#include "tins/utils/resolve_utils.h"
#include "tins/utils/routing_utils.h"
#include "tins/vxlan.h"