1// PDL grammar file for LLC packet format. 2 3big_endian_packets 4 5// LLC SAP types 6enum LlcSap : 8 { 7 SNAP = 0xAA, 8} 9 10// LLC CTRL types 11enum LlcCtrl : 8 { 12 UI_CMD = 0x03, 13} 14 15// EtherType 16enum EtherType: 16 { 17 IPv4 = 0x0800, 18 IPv6 = 0x86dd, 19 ARP = 0x0806, 20 NCSI = 0x88f8, 21 EAPOL = 0x888E, // PAE 22} 23 24// The 802.2 LLC/SNAP header sent before actual data in a data frame 25 packet LlcSnapHeader { 26 dsap: LlcSap, // Destination SAP ID 27 ssap: LlcSap, // Source SAP ID 28 ctrl: LlcCtrl, // Control information 29 oui: 24, // Organization code, usually 0 30 ethertype: EtherType, // Ethernet Type field 31 }