2015-01-04 11:23:12 +01:00
|
|
|
#Ethernet
|
|
|
|
---
|
2015-01-04 12:04:36 +01:00
|
|
|
protocol: ðframe
|
|
|
|
name: eth-frame
|
2015-01-04 11:23:12 +01:00
|
|
|
osilayer: 2
|
|
|
|
fields:
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: dstmac
|
|
|
|
desc: destination MAC
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 6
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: srcmac
|
|
|
|
desc: source MAC
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 6
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: vlantag
|
|
|
|
desc: VLAN tag
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 4
|
|
|
|
subfields:
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: tpid
|
|
|
|
desc: tag protocol identifier (0x8100)
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 2
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: tci
|
|
|
|
desc: tag control information
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 2
|
|
|
|
subfields:
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: pcp
|
|
|
|
desc: priority code point (PCP)
|
2015-01-04 11:23:12 +01:00
|
|
|
bitfield: yes
|
|
|
|
length: 3
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: dei
|
|
|
|
desc: drop eligible indicator (DEI)
|
2015-01-04 11:23:12 +01:00
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: vid
|
|
|
|
desc: VLAN identifier (VID)
|
2015-01-04 11:23:12 +01:00
|
|
|
bitfield: yes
|
|
|
|
length: 12
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: protocolid
|
2015-01-04 15:14:17 +01:00
|
|
|
desc: Ethertype (Eth II) or length (IEEE 802.3)
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 2
|
2015-01-04 15:14:17 +01:00
|
|
|
nextlayer: yes
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: data
|
2015-01-04 11:23:12 +01:00
|
|
|
data: true
|
2015-01-04 17:23:56 +01:00
|
|
|
- field: CRC
|
2015-01-04 15:14:17 +01:00
|
|
|
desc: FCS (32-bit CRC)
|
2015-01-04 11:23:12 +01:00
|
|
|
length: 4
|
2015-01-04 15:14:17 +01:00
|
|
|
optional: yes #most network stacks compute that automatically
|