ethertypes.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package ethernet
  2. // Ethertype is a type used represent the ethertype of an ethernet frame.
  3. // Defined as a 2-byte array, variables of this type are intended to be used as
  4. // immutable values.
  5. type Ethertype [2]byte
  6. // Common ethertype values
  7. var (
  8. IPv4 = Ethertype{0x08, 0x00}
  9. ARP = Ethertype{0x08, 0x06}
  10. WakeOnLAN = Ethertype{0x08, 0x42}
  11. TRILL = Ethertype{0x22, 0xF3}
  12. DECnetPhase4 = Ethertype{0x60, 0x03}
  13. RARP = Ethertype{0x80, 0x35}
  14. AppleTalk = Ethertype{0x80, 0x9B}
  15. AARP = Ethertype{0x80, 0xF3}
  16. IPX1 = Ethertype{0x81, 0x37}
  17. IPX2 = Ethertype{0x81, 0x38}
  18. QNXQnet = Ethertype{0x82, 0x04}
  19. IPv6 = Ethertype{0x86, 0xDD}
  20. EthernetFlowControl = Ethertype{0x88, 0x08}
  21. IEEE802_3 = Ethertype{0x88, 0x09}
  22. CobraNet = Ethertype{0x88, 0x19}
  23. MPLSUnicast = Ethertype{0x88, 0x47}
  24. MPLSMulticast = Ethertype{0x88, 0x48}
  25. PPPoEDiscovery = Ethertype{0x88, 0x63}
  26. PPPoESession = Ethertype{0x88, 0x64}
  27. JumboFrames = Ethertype{0x88, 0x70}
  28. HomePlug1_0MME = Ethertype{0x88, 0x7B}
  29. IEEE802_1X = Ethertype{0x88, 0x8E}
  30. PROFINET = Ethertype{0x88, 0x92}
  31. HyperSCSI = Ethertype{0x88, 0x9A}
  32. AoE = Ethertype{0x88, 0xA2}
  33. EtherCAT = Ethertype{0x88, 0xA4}
  34. EthernetPowerlink = Ethertype{0x88, 0xAB}
  35. LLDP = Ethertype{0x88, 0xCC}
  36. SERCOS3 = Ethertype{0x88, 0xCD}
  37. WSMP = Ethertype{0x88, 0xDC}
  38. HomePlugAVMME = Ethertype{0x88, 0xE1}
  39. MRP = Ethertype{0x88, 0xE3}
  40. IEEE802_1AE = Ethertype{0x88, 0xE5}
  41. IEEE1588 = Ethertype{0x88, 0xF7}
  42. IEEE802_1ag = Ethertype{0x89, 0x02}
  43. FCoE = Ethertype{0x89, 0x06}
  44. FCoEInit = Ethertype{0x89, 0x14}
  45. RoCE = Ethertype{0x89, 0x15}
  46. CTP = Ethertype{0x90, 0x00}
  47. VeritasLLT = Ethertype{0xCA, 0xFE}
  48. )