/* This file is part of PacketDotNet PacketDotNet is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PacketDotNet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PacketDotNet. If not, see . */ /* * Copyright 2009 Chris Morgan */ using System; namespace PacketDotNet { /// Link-layer type codes. ///

/// Taken from libpcap/bpf/net/bpf.h and pcap/net/bpf.h. ///

///

/// The link-layer type is used to determine what data-structure the /// IP protocol bits will be encapsulated inside of. ///

///

/// On a 10/100mbps network, packets are encapsulated inside of ethernet. /// 14-byte ethernet headers which contain MAC addresses and an ethernet type /// field. ///

///

/// On ethernet over ppp, the link-layer type is raw, and packets /// are not encapsulated in any ethernet header. ///

///
public enum LinkLayers : byte { /// no link-layer encapsulation Null = 0, /// Ethernet (10Mb) Ethernet = 1, /// Experimental Ethernet (3Mb) ExperimentalEthernet3MB = 2, /// Amateur Radio AX.25 AmateurRadioAX25 = 3, /// Proteon ProNET Token Ring ProteonProNetTokenRing = 4, /// Chaos Chaos = 5, /// IEEE 802 Networks Ieee802 = 6, /// ARCNET ArcNet = 7, /// Serial Line IP Slip = 8, /// Point-to-point Protocol Ppp = 9, /// FDDI Fddi = 10, /// LLC/SNAP encapsulated atm AtmRfc1483 = 11, /// raw IP Raw = 12, /// BSD Slip. SlipBSD = 15, /// BSD PPP. PppBSD = 16, /// IP over ATM. AtmClip = 19, /// PPP over HDLC. PppSerial = 50, /// Cisco HDLC. CiscoHDLC = 104, /// IEEE 802.11 wireless. Ieee80211 = 105, /// OpenBSD loopback. Loop = 108, /// Linux cooked sockets. LinuxSLL = 113, /// /// Header for 802.11 plus a number of bits of link-layer information /// including radio information, used by some recent BSD drivers as /// well as the madwifi Atheros driver for Linux. /// Ieee80211_Radio = 127, /// /// Per Packet Information encapsulated packets. /// DLT_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>. /// See http://www.cacetech.com/documents/PPI%20Header%20format%201.0.7.pdf /// PerPacketInformation = 192, } }