Enum pcarp::LinkType

source ·
pub enum LinkType {
Show 62 variants NULL, ETHERNET, EXP_ETHERNET, AX24, PRONET, CHAOS, TOKEN_RING, ARCNET, SLIP, PPP, FDDI, PPP_HDLC, PPP_ETHER, SYMANTEC_FIREWALL, ATM_RFC1483, RAW, SLIP_BSDOS, PPP_BSDOS, C_HDLC, IEEE802_11, ATM_CLIP, FRELAY, LOOP, ENC, LANE8023, HIPPI, HDLC, LINUX_SLL, LTALK, ECONET, IPFILTER, PFLOG, CISCO_IOS, PRISM_HEADER, AIRONET_HEADER, HHDLC, IP_OVER_FC, SUNATM, RIO, PCI_EXP, AURORA, IEEE802_11_RADIO, 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, Unknown(u16),
}
Expand description

The type of physical link backing a network interface.

Variants

NULL

No link layer information. A packet saved with this link layer contains a raw L3 packet preceded by a 32-bit host-byte-order AF_ value indicating the specific L3 type.

ETHERNET

D/I/X and 802.3 Ethernet

EXP_ETHERNET

Experimental Ethernet (3Mb)

AX24

Amateur Radio AX.25

PRONET

Proteon ProNET Token Ring

CHAOS

Chaos

TOKEN_RING

IEEE 802 Networks

ARCNET

ARCNET, with BSD-style header

SLIP

Serial Line IP

PPP

Point-to-point Protocol

FDDI

FDDI

PPP_HDLC

PPP in HDLC-like framing

PPP_ETHER

NetBSD PPP-over-Ethernet

SYMANTEC_FIREWALL

Symantec Enterprise Firewall

ATM_RFC1483

LLC/SNAP-encapsulated ATM

RAW

Raw IP

SLIP_BSDOS

BSD/OS SLIP BPF header

PPP_BSDOS

BSD/OS PPP BPF header

C_HDLC

Cisco HDLC

IEEE802_11

IEEE 802.11 (wireless)

ATM_CLIP

Linux Classical IP over ATM

FRELAY

Frame Relay

LOOP

OpenBSD loopback

ENC

OpenBSD IPSEC enc

LANE8023

ATM LANE + 802.3 (Reserved for future use)

HIPPI

NetBSD HIPPI (Reserved for future use)

HDLC

NetBSD HDLC framing (Reserved for future use)

LINUX_SLL

Linux cooked socket capture

LTALK

Apple LocalTalk hardware

ECONET

Acorn Econet

IPFILTER

Reserved for use with OpenBSD ipfilter

PFLOG

OpenBSD DLT_PFLOG

CISCO_IOS

For Cisco-internal use

PRISM_HEADER

802.11+Prism II monitor mode

AIRONET_HEADER

FreeBSD Aironet driver stuff

HHDLC

Reserved for Siemens HiPath HDLC

IP_OVER_FC

RFC 2625 IP-over-Fibre Channel

SUNATM

Solaris+SunATM

RIO

RapidIO - Reserved as per request from Kent Dahlgren kent@praesum.com for private use.

PCI_EXP

PCI Express - Reserved as per request from Kent Dahlgren kent@praesum.com for private use.

AURORA

Xilinx Aurora link layer - Reserved as per request from Kent Dahlgren kent@praesum.com for private use.

IEEE802_11_RADIO

802.11 plus BSD radio header

TZSP

Tazmen Sniffer Protocol - Reserved for the TZSP encapsulation, as per request from Chris Waters chris.waters@networkchemistry.com TZSP is a generic encapsulation for any other link type, which includes a means to include meta-information with the packet, e.g. signal strength and channel for 802.11 packets.

ARCNET_LINUX

Linux-style headers

JUNIPER_MLPPP

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_MLFR

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_ES

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_GGSN

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_MFR

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_ATM2

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_SERVICES

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

JUNIPER_ATM1

Juniper-private data link type, as per request from Hannes Gredler hannes@juniper.net. The corresponding DLT_s are used for passing on chassis-internal metainformation such as QOS profiles, etc..

APPLE_IP_OVER_IEEE1394

Apple IP-over-IEEE 1394 cooked header

MTP2_WITH_PHDR

???

MTP2

???

MTP3

???

SCCP

???

DOCSIS

DOCSIS MAC frames

LINUX_IRDA

Linux-IrDA

IBM_SP

Reserved for IBM SP switch and IBM Next Federation switch.

IBM_SN

Reserved for IBM SP switch and IBM Next Federation switch.

Unknown(u16)

A link type we didn’t recognise.

Implementations

Decode LinkType from u16

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.