[][src]Enum pcarp::LinkType

pub enum LinkType {
    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),
}

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

impl LinkType[src]

pub fn from_u16(i: u16) -> LinkType[src]

Decode LinkType from u16

Trait Implementations

impl Clone for LinkType[src]

impl Copy for LinkType[src]

impl Debug for LinkType[src]

impl PartialEq<LinkType> for LinkType[src]

impl StructuralPartialEq for LinkType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.