libtins  4.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Tins::DataLinkType< T > Struct Template Reference

Maps a libtins link layer PDU to a libpcap data link identifier. More...

#include <data_link_type.h>

Detailed Description

template<typename T>
struct Tins::DataLinkType< T >

Maps a libtins link layer PDU to a libpcap data link identifier.

This is an empty class that should be instantiated with any object that represents a link layer PDU (EthernetII, Dot11, RadioTap, etc):

// Instantiate it and pass it to PacketWriter's constructor.
PacketWriter writer("file.pcap", DataLinkType<RadioTap>());

The documentation for this struct was generated from the following file: