/// ************************************************************************ /// Copyright (C) 2001, Patrick Charles and Jonas Lehmann * /// Distributed under the Mozilla Public License * /// http://www.mozilla.org/NPL/MPL-1.1.txt * /// ************************************************************************* /// namespace SharpPcap.Packets { /// 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 struct LinkLayers_Fields{ /// no link-layer encapsulation public const int NULL = 0; /// Ethernet (10Mb) public const int EN10MB = 1; /// Experimental Ethernet (3Mb) public const int EN3MB = 2; /// Amateur Radio AX.25 public const int AX25 = 3; /// Proteon ProNET Token Ring public const int PRONET = 4; /// Chaos public const int CHAOS = 5; /// IEEE 802 Networks public const int IEEE802 = 6; /// ARCNET public const int ARCNET = 7; /// Serial Line IP public const int SLIP = 8; /// Point-to-point Protocol public const int PPP = 9; /// FDDI public const int FDDI = 10; /// LLC/SNAP encapsulated atm public const int ATM_RFC1483 = 11; /// raw IP public const int RAW = 12; /// BSD Slip. public const int SLIP_BSDOS = 15; /// BSD PPP. public const int PPP_BSDOS = 16; /// IP over ATM. public const int ATM_CLIP = 19; /// PPP over HDLC. public const int PPP_SERIAL = 50; /// Cisco HDLC. public const int CHDLC = 104; /// IEEE 802.11 wireless. public const int IEEE802_11 = 105; /// OpenBSD loopback. public const int LOOP = 108; /// Linux cooked sockets. public const int LINUX_SLL = 113; /// unknown link-layer type public const int UNKNOWN = - 1; } public interface LinkLayers { //UPGRADE_NOTE: Members of interface 'LinkLayers' were extracted into structure 'LinkLayers_Fields'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1045'" } }