LinkType

Enum LinkType 

Source
#[repr(u16)]
pub enum LinkType {
Show 112 variants Null = 0, Ethernet = 1, Ax25 = 3, Ieee802_5 = 6, ArcnetBsd = 7, Slip = 8, Ppp = 9, Fddi = 10, PppHdlc = 50, PppEther = 51, CHdlc = 104, PppPppd = 166, PppWithDir = 204, CHdlcWithDir = 205, FrelayWithDir = 206, AtmRfc1483 = 100, Raw = 101, Frelay = 107, Mfr = 182, Ieee802_11 = 105, Ieee802_11Prism = 119, Ieee802_11Radiotap = 127, Ieee802_11Avs = 163, BluetoothHciH4 = 187, Ieee802_15_4Withfcs = 195, BluetoothHciH4WithPhdr = 201, Ieee802_15_4NonaskPhy = 215, Ieee802_15_4Nofcs = 230, BluetoothLeLl = 251, BluetoothLinuxMonitor = 254, BluetoothBredrBb = 255, BluetoothLeLlWithPhdr = 256, Ieee802_15_4Tap = 283, Loop = 108, LinuxSll = 113, Pflog = 117, ArcnetLinux = 129, LinuxIrda = 144, LinuxLapd = 177, UsbLinux = 189, UsbLinuxMmapped = 220, Ipnet = 226, CanSocketcan = 227, Nflog = 239, Netlink = 253, Pktap = 258, UsbDarwin = 266, Vsock = 271, LinuxSll2 = 276, Mtp2WithPhdr = 139, Mtp2 = 140, Mtp3 = 141, Sccp = 142, GprsLlc = 169, GpfT = 170, GpfF = 171, IpmbLinux = 209, RtacSerial = 250, ProfibusDl = 257, ZwaveR1R2 = 261, ZwaveR3 = 262, WattstopperDlm = 263, ZWaveSerial = 287, Ltalk = 114, IpOverFc = 122, Sunatm = 123, AppleIpOverIeee1394 = 138, Docsis = 143, BacnetMsTp = 165, Sita = 196, Erf = 197, Ax25Kiss = 202, Lapd = 203, LapbWithDir = 207, Fc2 = 224, Fc2WithFrameDelims = 225, Ipv4 = 228, Ipv6 = 229, Dbus = 231, DvbCi = 235, Mux27010 = 236, Stanag5066DPdu = 237, Netanalyzer = 240, NetanalyzerTransparent = 241, Ipoib = 242, Mpeg2Ts = 243, Ng40 = 244, NfcLlcp = 245, Infiniband = 247, Sctp = 248, UsbPcap = 249, Ppi = 192, Epon = 259, IpmiHpm2 = 260, Iso14443 = 264, Rds = 265, Sdlc = 268, Loratap = 270, NordicBle = 272, Docsis31Xra31 = 273, EthernetMpacket = 274, DisplayportAux = 275, Openvizsla = 278, Ebhscr = 279, VppDispatch = 280, DsaTagBrcm = 281, DsaTagBrcmPrepend = 282, DsaTagDsa = 284, DsaTagEdsa = 285, Elee = 286, Usb2_0 = 288, AtscAlp = 289,
}
Expand description

Represents the link type for pcap and pcap-ng files

Variants§

§

Null = 0

§

Ethernet = 1

§

Ax25 = 3

§

Ieee802_5 = 6

§

ArcnetBsd = 7

§

Slip = 8

§

Ppp = 9

§

Fddi = 10

§

PppHdlc = 50

§

PppEther = 51

§

CHdlc = 104

§

PppPppd = 166

§

PppWithDir = 204

§

CHdlcWithDir = 205

§

FrelayWithDir = 206

§

AtmRfc1483 = 100

§

Raw = 101

§

Frelay = 107

§

Mfr = 182

§

Ieee802_11 = 105

§

Ieee802_11Prism = 119

§

Ieee802_11Radiotap = 127

§

Ieee802_11Avs = 163

§

BluetoothHciH4 = 187

§

Ieee802_15_4Withfcs = 195

§

BluetoothHciH4WithPhdr = 201

§

Ieee802_15_4NonaskPhy = 215

§

Ieee802_15_4Nofcs = 230

§

BluetoothLeLl = 251

§

BluetoothLinuxMonitor = 254

§

BluetoothBredrBb = 255

§

BluetoothLeLlWithPhdr = 256

§

Ieee802_15_4Tap = 283

§

Loop = 108

§

LinuxSll = 113

§

Pflog = 117

§

ArcnetLinux = 129

§

LinuxIrda = 144

§

LinuxLapd = 177

§

UsbLinux = 189

§

UsbLinuxMmapped = 220

§

Ipnet = 226

§

CanSocketcan = 227

§

Nflog = 239

§

Pktap = 258

§

UsbDarwin = 266

§

Vsock = 271

§

LinuxSll2 = 276

§

Mtp2WithPhdr = 139

§

Mtp2 = 140

§

Mtp3 = 141

§

Sccp = 142

§

GprsLlc = 169

§

GpfT = 170

§

GpfF = 171

§

IpmbLinux = 209

§

RtacSerial = 250

§

ProfibusDl = 257

§

ZwaveR1R2 = 261

§

ZwaveR3 = 262

§

WattstopperDlm = 263

§

ZWaveSerial = 287

§

Ltalk = 114

§

IpOverFc = 122

§

Sunatm = 123

§

AppleIpOverIeee1394 = 138

§

Docsis = 143

§

BacnetMsTp = 165

§

Sita = 196

§

Erf = 197

§

Ax25Kiss = 202

§

Lapd = 203

§

LapbWithDir = 207

§

Fc2 = 224

§

Fc2WithFrameDelims = 225

§

Ipv4 = 228

§

Ipv6 = 229

§

Dbus = 231

§

DvbCi = 235

§

Mux27010 = 236

§

Stanag5066DPdu = 237

§

Netanalyzer = 240

§

NetanalyzerTransparent = 241

§

Ipoib = 242

§

Mpeg2Ts = 243

§

Ng40 = 244

§

NfcLlcp = 245

§

Infiniband = 247

§

Sctp = 248

§

UsbPcap = 249

§

Ppi = 192

§

Epon = 259

§

IpmiHpm2 = 260

§

Iso14443 = 264

§

Rds = 265

§

Sdlc = 268

§

Loratap = 270

§

NordicBle = 272

§

Docsis31Xra31 = 273

§

EthernetMpacket = 274

§

DisplayportAux = 275

§

Openvizsla = 278

§

Ebhscr = 279

§

VppDispatch = 280

§

DsaTagBrcm = 281

§

DsaTagBrcmPrepend = 282

§

DsaTagDsa = 284

§

DsaTagEdsa = 285

§

Elee = 286

§

Usb2_0 = 288

§

AtscAlp = 289

Trait Implementations§

Source§

impl Clone for LinkType

Source§

fn clone(&self) -> LinkType

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for LinkType

Source§

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

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

impl Default for LinkType

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for LinkType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u16> for LinkType

Source§

type Error = InvalidLinkType

The type returned in the event of a conversion error.
Source§

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for LinkType

Source§

type Error = InvalidLinkType

The type returned in the event of a conversion error.
Source§

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for LinkType

Source§

impl Eq for LinkType

Source§

impl StructuralPartialEq for LinkType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

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.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.