Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Namespace

P

Public Namespace
std.os.linux.ETH.P
pub const P = struct

These are the defined Ethernet Protocol ID's.

Values

  • pub const LOOP

    Ethernet Loopback packet

  • pub const PUP

    Xerox PUP packet

  • pub const PUPAT

    Xerox PUP Addr Trans packet

  • pub const TSN

    TSN (IEEE 1722) packet

  • pub const ERSPAN2

    ERSPAN version 2 (type III)

  • pub const IP

    Internet Protocol packet

  • pub const X25

    CCITT X.25

  • pub const ARP

    Address Resolution packet

  • pub const BPQ

    G8BPQ AX.25 Ethernet Packet [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const IEEEPUP

    Xerox IEEE802.3 PUP packet

  • pub const IEEEPUPAT

    Xerox IEEE802.3 PUP Addr Trans packet

  • pub const BATMAN

    B.A.T.M.A.N.-Advanced packet [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const DEC

    DEC Assigned proto

  • pub const DNA_DL

    DEC DNA Dump/Load

  • pub const DNA_RC

    DEC DNA Remote Console

  • pub const DNA_RT

    DEC DNA Routing

  • pub const LAT

    DEC LAT

  • pub const DIAG

    DEC Diagnostics

  • pub const CUST

    DEC Customer use

  • pub const SCA

    DEC Systems Comms Arch

  • pub const TEB

    Trans Ether Bridging

  • pub const RARP

    Reverse Addr Res packet

  • pub const ATALK

    Appletalk DDP

  • pub const AARP

    Appletalk AARP

  • pub const P_8021Q

    802.1Q VLAN Extended Header

  • pub const ERSPAN

    ERSPAN type II

  • pub const IPX

    IPX over DIX

  • pub const IPV6

    IPv6 over bluebook

  • pub const PAUSE

    IEEE Pause frames. See 802.3 31B

  • pub const SLOW

    Slow Protocol. See 802.3ad 43B

  • pub const WCCP

    Web-cache coordination protocol defined in draft-wilson-wrec-wccp-v2-00.txt

  • pub const MPLS_UC

    MPLS Unicast traffic

  • pub const MPLS_MC

    MPLS Multicast traffic

  • pub const ATMMPOA

    MultiProtocol Over ATM

  • pub const PPP_DISC

    PPPoE discovery messages

  • pub const PPP_SES

    PPPoE session messages

  • pub const LINK_CTL

    HPNA, wlan link local tunnel

  • pub const ATMFATE

    Frame-based ATM Transport over Ethernet

  • pub const PAE

    Port Access Entity (IEEE 802.1X)

  • pub const PROFINET

    PROFINET

  • pub const REALTEK

    Multiple proprietary protocols

  • pub const AOE

    ATA over Ethernet

  • pub const ETHERCAT

    EtherCAT

  • pub const @"8021AD"

    802.1ad Service VLAN

  • pub const @"802_EX1"

    802.1 Local Experimental 1.

  • pub const PREAUTH

    802.11 Preauthentication

  • pub const TIPC

    TIPC

  • pub const LLDP

    Link Layer Discovery Protocol

  • pub const MRP

    Media Redundancy Protocol

  • pub const MACSEC

    802.1ae MACsec

  • pub const @"8021AH"

    802.1ah Backbone Service Tag

  • pub const MVRP

    802.1Q MVRP

  • pub const @"1588"

    IEEE 1588 Timesync

  • pub const NCSI

    NCSI protocol

  • pub const PRP

    IEC 62439-3 PRP/HSRv0

  • pub const CFM

    Connectivity Fault Management

  • pub const FCOE

    Fibre Channel over Ethernet

  • pub const IBOE

    Infiniband over Ethernet

  • pub const TDLS

    TDLS

  • pub const FIP

    FCoE Initialization Protocol

  • pub const @"80221"

    IEEE 802.21 Media Independent Handover Protocol

  • pub const HSR

    IEC 62439-3 HSRv1

  • pub const NSH

    Network Service Header

  • pub const LOOPBACK

    Ethernet loopback packet, per IEEE 802.3

  • pub const QINQ1

    deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const QINQ2

    deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const QINQ3

    deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const EDSA

    Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const DSA_8021Q

    Fake VLAN Header for DSA [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const DSA_A5PSW

    A5PSW Tag Value [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const IFE

    ForCES inter-FE LFB type

  • pub const AF_IUCV

    IBM af_iucv [ NOT AN OFFICIALLY REGISTERED ID ]

  • pub const @"802_3_MIN"

    If the value in the ethernet type is more than this value then the frame is Ethernet II. Else it is 802.3

  • pub const @"802_3"

    Dummy type for 802.3 frames

  • pub const AX25

    Dummy protocol id for AX.25

  • pub const ALL

    Every packet (be careful!!!)

  • pub const @"802_2"

    802.2 frames

  • pub const SNAP

    Internal only

  • pub const DDCMP

    DEC DDCMP: Internal only

  • pub const WAN_PPP

    Dummy type for WAN PPP frames

  • pub const PPP_MP

    Dummy type for PPP MP frames

  • pub const LOCALTALK

    Localtalk pseudo type

  • pub const CAN

    CAN: Controller Area Network

  • pub const CANFD

    CANFD: CAN flexible data rate

  • pub const CANXL

    CANXL: eXtended frame Length

  • pub const PPPTALK

    Dummy type for Atalk over PPP

  • pub const TR_802_2

    802.2 frames

  • pub const MOBITEX

    Mobitex (kaz@cafe.net)

  • pub const CONTROL

    Card specific control frames

  • pub const IRDA

    Linux-IrDA

  • pub const ECONET

    Acorn Econet

  • pub const HDLC

    HDLC frames

  • pub const ARCNET

    1A for ArcNet :-)

  • pub const DSA

    Distributed Switch Arch.

  • pub const TRAILER

    Trailer switch tagging

  • pub const PHONET

    Nokia Phonet frames

  • pub const IEEE802154

    IEEE802.15.4 frame

  • pub const CAIF

    ST-Ericsson CAIF protocol

  • pub const XDSA

    Multiplexed DSA protocol

  • pub const MAP

    Qualcomm multiplexing and aggregation protocol

  • pub const MCTP

    Management component transport protocol packets

File

os/linux.zig:5549
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
    pub const P = struct {
        /// Ethernet Loopback packet
        pub const LOOP = 0x0060;
        /// Xerox PUP packet
        pub const PUP = 0x0200;
        /// Xerox PUP Addr Trans packet
        pub const PUPAT = 0x0201;
        /// TSN (IEEE 1722) packet
        pub const TSN = 0x22F0;
        /// ERSPAN version 2 (type III)
        pub const ERSPAN2 = 0x22EB;
        /// Internet Protocol packet
        pub const IP = 0x0800;
        /// CCITT X.25
        pub const X25 = 0x0805;
        /// Address Resolution packet
        pub const ARP = 0x0806;
        /// G8BPQ AX.25 Ethernet Packet [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const BPQ = 0x08FF;
        /// Xerox IEEE802.3 PUP packet
        pub const IEEEPUP = 0x0a00;
        /// Xerox IEEE802.3 PUP Addr Trans packet
        pub const IEEEPUPAT = 0x0a01;
        /// B.A.T.M.A.N.-Advanced packet [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const BATMAN = 0x4305;
        /// DEC Assigned proto
        pub const DEC = 0x6000;
        /// DEC DNA Dump/Load
        pub const DNA_DL = 0x6001;
        /// DEC DNA Remote Console
        pub const DNA_RC = 0x6002;
        /// DEC DNA Routing
        pub const DNA_RT = 0x6003;
        /// DEC LAT
        pub const LAT = 0x6004;
        /// DEC Diagnostics
        pub const DIAG = 0x6005;
        /// DEC Customer use
        pub const CUST = 0x6006;
        /// DEC Systems Comms Arch
        pub const SCA = 0x6007;
        /// Trans Ether Bridging
        pub const TEB = 0x6558;
        /// Reverse Addr Res packet
        pub const RARP = 0x8035;
        /// Appletalk DDP
        pub const ATALK = 0x809B;
        /// Appletalk AARP
        pub const AARP = 0x80F3;
        /// 802.1Q VLAN Extended Header
        pub const P_8021Q = 0x8100;
        /// ERSPAN type II
        pub const ERSPAN = 0x88BE;
        /// IPX over DIX
        pub const IPX = 0x8137;
        /// IPv6 over bluebook
        pub const IPV6 = 0x86DD;
        /// IEEE Pause frames. See 802.3 31B
        pub const PAUSE = 0x8808;
        /// Slow Protocol. See 802.3ad 43B
        pub const SLOW = 0x8809;
        /// Web-cache coordination protocol defined in draft-wilson-wrec-wccp-v2-00.txt
        pub const WCCP = 0x883E;
        /// MPLS Unicast traffic
        pub const MPLS_UC = 0x8847;
        /// MPLS Multicast traffic
        pub const MPLS_MC = 0x8848;
        /// MultiProtocol Over ATM
        pub const ATMMPOA = 0x884c;
        /// PPPoE discovery messages
        pub const PPP_DISC = 0x8863;
        /// PPPoE session messages
        pub const PPP_SES = 0x8864;
        /// HPNA, wlan link local tunnel
        pub const LINK_CTL = 0x886c;
        /// Frame-based ATM Transport over Ethernet
        pub const ATMFATE = 0x8884;
        /// Port Access Entity (IEEE 802.1X)
        pub const PAE = 0x888E;
        /// PROFINET
        pub const PROFINET = 0x8892;
        /// Multiple proprietary protocols
        pub const REALTEK = 0x8899;
        /// ATA over Ethernet
        pub const AOE = 0x88A2;
        /// EtherCAT
        pub const ETHERCAT = 0x88A4;
        /// 802.1ad Service VLAN
        pub const @"8021AD" = 0x88A8;
        /// 802.1 Local Experimental 1.
        pub const @"802_EX1" = 0x88B5;
        /// 802.11 Preauthentication
        pub const PREAUTH = 0x88C7;
        /// TIPC
        pub const TIPC = 0x88CA;
        /// Link Layer Discovery Protocol
        pub const LLDP = 0x88CC;
        /// Media Redundancy Protocol
        pub const MRP = 0x88E3;
        /// 802.1ae MACsec
        pub const MACSEC = 0x88E5;
        /// 802.1ah Backbone Service Tag
        pub const @"8021AH" = 0x88E7;
        /// 802.1Q MVRP
        pub const MVRP = 0x88F5;
        /// IEEE 1588 Timesync
        pub const @"1588" = 0x88F7;
        /// NCSI protocol
        pub const NCSI = 0x88F8;
        /// IEC 62439-3 PRP/HSRv0
        pub const PRP = 0x88FB;
        /// Connectivity Fault Management
        pub const CFM = 0x8902;
        /// Fibre Channel over Ethernet
        pub const FCOE = 0x8906;
        /// Infiniband over Ethernet
        pub const IBOE = 0x8915;
        /// TDLS
        pub const TDLS = 0x890D;
        /// FCoE Initialization Protocol
        pub const FIP = 0x8914;
        /// IEEE 802.21 Media Independent Handover Protocol
        pub const @"80221" = 0x8917;
        /// IEC 62439-3 HSRv1
        pub const HSR = 0x892F;
        /// Network Service Header
        pub const NSH = 0x894F;
        /// Ethernet loopback packet, per IEEE 802.3
        pub const LOOPBACK = 0x9000;
        /// deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const QINQ1 = 0x9100;
        /// deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const QINQ2 = 0x9200;
        /// deprecated QinQ VLAN [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const QINQ3 = 0x9300;
        /// Ethertype DSA [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const EDSA = 0xDADA;
        /// Fake VLAN Header for DSA [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const DSA_8021Q = 0xDADB;
        /// A5PSW Tag Value [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const DSA_A5PSW = 0xE001;
        /// ForCES inter-FE LFB type
        pub const IFE = 0xED3E;
        /// IBM af_iucv [ NOT AN OFFICIALLY REGISTERED ID ]
        pub const AF_IUCV = 0xFBFB;
        /// If the value in the ethernet type is more than this value then the frame is Ethernet II. Else it is 802.3
        pub const @"802_3_MIN" = 0x0600;

        // Non DIX types. Won't clash for 1500 types.

        /// Dummy type for 802.3 frames
        pub const @"802_3" = 0x0001;
        /// Dummy protocol id for AX.25
        pub const AX25 = 0x0002;
        /// Every packet (be careful!!!)
        pub const ALL = 0x0003;
        /// 802.2 frames
        pub const @"802_2" = 0x0004;
        /// Internal only
        pub const SNAP = 0x0005;
        /// DEC DDCMP: Internal only
        pub const DDCMP = 0x0006;
        /// Dummy type for WAN PPP frames
        pub const WAN_PPP = 0x0007;
        /// Dummy type for PPP MP frames
        pub const PPP_MP = 0x0008;
        /// Localtalk pseudo type
        pub const LOCALTALK = 0x0009;
        /// CAN: Controller Area Network
        pub const CAN = 0x000C;
        /// CANFD: CAN flexible data rate
        pub const CANFD = 0x000D;
        /// CANXL: eXtended frame Length
        pub const CANXL = 0x000E;
        /// Dummy type for Atalk over PPP
        pub const PPPTALK = 0x0010;
        /// 802.2 frames
        pub const TR_802_2 = 0x0011;
        /// Mobitex (kaz@cafe.net)
        pub const MOBITEX = 0x0015;
        /// Card specific control frames
        pub const CONTROL = 0x0016;
        /// Linux-IrDA
        pub const IRDA = 0x0017;
        /// Acorn Econet
        pub const ECONET = 0x0018;
        /// HDLC frames
        pub const HDLC = 0x0019;
        /// 1A for ArcNet :-)
        pub const ARCNET = 0x001A;
        /// Distributed Switch Arch.
        pub const DSA = 0x001B;
        /// Trailer switch tagging
        pub const TRAILER = 0x001C;
        /// Nokia Phonet frames
        pub const PHONET = 0x00F5;
        /// IEEE802.15.4 frame
        pub const IEEE802154 = 0x00F6;
        /// ST-Ericsson CAIF protocol
        pub const CAIF = 0x00F7;
        /// Multiplexed DSA protocol
        pub const XDSA = 0x00F8;
        /// Qualcomm multiplexing and aggregation protocol
        pub const MAP = 0x00F9;
        /// Management component transport protocol packets
        pub const MCTP = 0x00FA;
    }