Enum pcap_file::DataLink

source ·
pub enum DataLink {
Show 212 variants NULL, ETHERNET, EXP_ETHERNET, AX25, PRONET, CHAOS, IEEE802_5, ARCNET_BSD, SLIP, PPP, FDDI, PPP_HDLC, PPP_ETHER, SYMANTEC_FIREWALL, ATM_RFC1483, RAW, SLIP_BSDOS, PPP_BSDOS, MATCHING_MIN, C_HDLC, IEEE802_11, ATM_CLIP, FRELAY, LOOP, ENC, LANE8023, HIPPI, NETBSD_HDLC, LINUX_SLL, LTALK, ECONET, IPFILTER, PFLOG, CISCO_IOS, IEEE802_11_PRISM, IEEE802_11_AIRONET, HHDLC, IP_OVER_FC, SUNATM, RIO, PCI_EXP, AURORA, IEEE802_11_RADIOTAP, TZSP, ARCNET_LINUX, JUNIPER_MLPPP, JUNIPER_MLFR, JUNIPER_ES, JUNIPER_GGSN, JUNIPER_MFR, JUNIPER_ATM2, JUNIPER_SERVICES, JUNIPER_ATM1, APPLE_IP_OVER_IEEE1394, MTP2_WITH_PHDR, MTP2, MTP3, SCCP, DOCSIS, LINUX_IRDA, IBM_SP, IBM_SN, USER0, USER1, USER2, USER3, USER4, USER5, USER6, USER7, USER8, USER9, USER10, USER11, USER12, USER13, USER14, USER15, IEEE802_11_AVS, JUNIPER_MONITOR, BACNET_MS_TP, PPP_PPPD, JUNIPER_PPPOE, JUNIPER_PPPOE_ATM, GPRS_LLC, GPF_T, GPF_F, GCOM_T1E1, GCOM_SERIAL, JUNIPER_PIC_PEER, ERF_ETH, ERF_POS, LINUX_LAPD, JUNIPER_ETHER, JUNIPER_PPP, JUNIPER_FRELAY, JUNIPER_CHDLC, MFR, JUNIPER_VP, A429, A653_ICM, USB_FREEBSD, BLUETOOTH_HCI_H4, IEEE802_16_MAC_CPS, USB_LINUX, CAN20B, IEEE802_15_4_LINUX, PPI, IEEE802_16_MAC_CPS_RADIO, JUNIPER_ISM, IEEE802_15_4, SITA, ERF, RAIF1, IPMB_KONTRON, JUNIPER_ST, BLUETOOTH_HCI_H4_WITH_PHDR, AX25_KISS, LAPD, PPP_WITH_DIR, C_HDLC_WITH_DIR, FRELAY_WITH_DIR, LAPB_WITH_DIR, IPMB_LINUX, FLEXRAY, MOST, LIN, X2E_SERIAL, X2E_XORAYA, IEEE802_15_4_NONASK_PHY, LINUX_EVDEV, GSMTAP_UM, GSMTAP_ABIS, MPLS, USB_LINUX_MMAPPED, DECT, AOS, WIHART, FC_2, FC_2_WITH_FRAME_DELIMS, IPNET, CAN_SOCKETCAN, IPV4, IPV6, IEEE802_15_4_NOFCS, DBUS, JUNIPER_VS, JUNIPER_SRX_E2E, JUNIPER_FIBRECHANNEL, DVB_CI, MUX27010, STANAG_5066_D_PDU, JUNIPER_ATM_CEMIC, NFLOG, NETANALYZER, NETANALYZER_TRANSPARENT, IPOIB, MPEG_2_TS, NG40, NFC_LLCP, PFSYNC, INFINIBAND, SCTP, USBPCAP, RTAC_SERIAL, BLUETOOTH_LE_LL, WIRESHARK_UPPER_PDU, NETLINK, BLUETOOTH_LINUX_MONITOR, BLUETOOTH_BREDR_BB, BLUETOOTH_LE_LL_WITH_PHDR, PROFIBUS_DL, PKTAP, EPON, IPMI_HPM_2, ZWAVE_R1_R2, ZWAVE_R3, WATTSTOPPER_DLM, ISO_14443, RDS, USB_DARWIN, OPENFLOW, SDLC, TI_LLN_SNIFFER, LORATAP, VSOCK, NORDIC_BLE, DOCSIS31_XRA31, ETHERNET_MPACKET, DISPLAYPORT_AUX, LINUX_SLL2, SERCOS_MONITOR, OPENVIZSLA, EBHSCR, VPP_DISPATCH, DSA_TAG_BRCM, DSA_TAG_BRCM_PREPEND, IEEE802_15_4_TAP, DSA_TAG_DSA, DSA_TAG_EDSA, ELEE, Z_WAVE_SERIAL, USB_2_0, ATSC_ALP, ETW, NETANALYZER_NG, ZBOSS_NCP, USB_2_0_LOW_SPEED, USB_2_0_FULL_SPEED, USB_2_0_HIGH_SPEED, AUERSWALD_LOG, Unknown(u32),
}
Expand description

Data link type

The link-layer header type specifies the first protocol of the packet.

See http://www.tcpdump.org/linktypes.html

Variants§

§

NULL

§

ETHERNET

§

EXP_ETHERNET

§

AX25

§

PRONET

§

CHAOS

§

IEEE802_5

§

ARCNET_BSD

§

SLIP

§

PPP

§

FDDI

§

PPP_HDLC

§

PPP_ETHER

§

SYMANTEC_FIREWALL

§

ATM_RFC1483

§

RAW

§

SLIP_BSDOS

§

PPP_BSDOS

§

MATCHING_MIN

§

C_HDLC

§

IEEE802_11

§

ATM_CLIP

§

FRELAY

§

LOOP

§

ENC

§

LANE8023

§

HIPPI

§

NETBSD_HDLC

§

LINUX_SLL

§

LTALK

§

ECONET

§

IPFILTER

§

PFLOG

§

CISCO_IOS

§

IEEE802_11_PRISM

§

IEEE802_11_AIRONET

§

HHDLC

§

IP_OVER_FC

§

SUNATM

§

RIO

§

PCI_EXP

§

AURORA

§

IEEE802_11_RADIOTAP

§

TZSP

§

ARCNET_LINUX

§

JUNIPER_MLPPP

§

JUNIPER_MLFR

§

JUNIPER_ES

§

JUNIPER_GGSN

§

JUNIPER_MFR

§

JUNIPER_ATM2

§

JUNIPER_SERVICES

§

JUNIPER_ATM1

§

APPLE_IP_OVER_IEEE1394

§

MTP2_WITH_PHDR

§

MTP2

§

MTP3

§

SCCP

§

DOCSIS

§

LINUX_IRDA

§

IBM_SP

§

IBM_SN

§

USER0

§

USER1

§

USER2

§

USER3

§

USER4

§

USER5

§

USER6

§

USER7

§

USER8

§

USER9

§

USER10

§

USER11

§

USER12

§

USER13

§

USER14

§

USER15

§

IEEE802_11_AVS

§

JUNIPER_MONITOR

§

BACNET_MS_TP

§

PPP_PPPD

§

JUNIPER_PPPOE

§

JUNIPER_PPPOE_ATM

§

GPRS_LLC

§

GPF_T

§

GPF_F

§

GCOM_T1E1

§

GCOM_SERIAL

§

JUNIPER_PIC_PEER

§

ERF_ETH

§

ERF_POS

§

LINUX_LAPD

§

JUNIPER_ETHER

§

JUNIPER_PPP

§

JUNIPER_FRELAY

§

JUNIPER_CHDLC

§

MFR

§

JUNIPER_VP

§

A429

§

A653_ICM

§

USB_FREEBSD

§

BLUETOOTH_HCI_H4

§

IEEE802_16_MAC_CPS

§

USB_LINUX

§

CAN20B

§

IEEE802_15_4_LINUX

§

PPI

§

IEEE802_16_MAC_CPS_RADIO

§

JUNIPER_ISM

§

IEEE802_15_4

§

SITA

§

ERF

§

RAIF1

§

IPMB_KONTRON

§

JUNIPER_ST

§

BLUETOOTH_HCI_H4_WITH_PHDR

§

AX25_KISS

§

LAPD

§

PPP_WITH_DIR

§

C_HDLC_WITH_DIR

§

FRELAY_WITH_DIR

§

LAPB_WITH_DIR

§

IPMB_LINUX

§

FLEXRAY

§

MOST

§

LIN

§

X2E_SERIAL

§

X2E_XORAYA

§

IEEE802_15_4_NONASK_PHY

§

LINUX_EVDEV

§

GSMTAP_UM

§

GSMTAP_ABIS

§

MPLS

§

USB_LINUX_MMAPPED

§

DECT

§

AOS

§

WIHART

§

FC_2

§

FC_2_WITH_FRAME_DELIMS

§

IPNET

§

CAN_SOCKETCAN

§

IPV4

§

IPV6

§

IEEE802_15_4_NOFCS

§

DBUS

§

JUNIPER_VS

§

JUNIPER_SRX_E2E

§

JUNIPER_FIBRECHANNEL

§

DVB_CI

§

MUX27010

§

STANAG_5066_D_PDU

§

JUNIPER_ATM_CEMIC

§

NFLOG

§

NETANALYZER

§

NETANALYZER_TRANSPARENT

§

IPOIB

§

MPEG_2_TS

§

NG40

§

NFC_LLCP

§

PFSYNC

§

INFINIBAND

§

SCTP

§

USBPCAP

§

RTAC_SERIAL

§

BLUETOOTH_LE_LL

§

WIRESHARK_UPPER_PDU

§

BLUETOOTH_LINUX_MONITOR

§

BLUETOOTH_BREDR_BB

§

BLUETOOTH_LE_LL_WITH_PHDR

§

PROFIBUS_DL

§

PKTAP

§

EPON

§

IPMI_HPM_2

§

ZWAVE_R1_R2

§

ZWAVE_R3

§

WATTSTOPPER_DLM

§

ISO_14443

§

RDS

§

USB_DARWIN

§

OPENFLOW

§

SDLC

§

TI_LLN_SNIFFER

§

LORATAP

§

VSOCK

§

NORDIC_BLE

§

DOCSIS31_XRA31

§

ETHERNET_MPACKET

§

DISPLAYPORT_AUX

§

LINUX_SLL2

§

SERCOS_MONITOR

§

OPENVIZSLA

§

EBHSCR

§

VPP_DISPATCH

§

DSA_TAG_BRCM

§

DSA_TAG_BRCM_PREPEND

§

IEEE802_15_4_TAP

§

DSA_TAG_DSA

§

DSA_TAG_EDSA

§

ELEE

§

Z_WAVE_SERIAL

§

USB_2_0

§

ATSC_ALP

§

ETW

§

NETANALYZER_NG

§

ZBOSS_NCP

§

USB_2_0_LOW_SPEED

§

USB_2_0_FULL_SPEED

§

USB_2_0_HIGH_SPEED

§

AUERSWALD_LOG

§

Unknown(u32)

Trait Implementations§

source§

fn clone(&self) -> DataLink

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<DataLink> for u32

source§

fn from(link: DataLink) -> u32

Converts to this type from the input type.
source§

fn from(n: u32) -> DataLink

Converts to this type from the input type.
source§

fn eq(&self, other: &DataLink) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.