1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
use rusticata_macros::newtype_enum; /// Data link type /// /// The link-layer header type specifies the type of headers at the beginning /// of the packet. /// /// See [http://www.tcpdump.org/linktypes.html](http://www.tcpdump.org/linktypes.html) #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct Linktype(pub i32); newtype_enum! { impl display Linktype { NULL = 0, ETHERNET = 1, FDDI = 10, RAW = 101, LOOP = 108, LINUX_SLL = 113, // Raw IPv4; the packet begins with an IPv4 header. IPV4 = 228, // Raw IPv6; the packet begins with an IPv6 header. IPV6 = 229, // Linux netlink NETLINK NFLOG socket log messages. // Use the [`pcap_nflog`]()../pcap_nflog/index.html module to access content. NFLOG = 239, // Upper-layer protocol saves from Wireshark WIRESHARK_UPPER_PDU = 252, } }