cyanhe_wh 2019. 9. 5. 12:13
반응형

Ethernet 헤더는 제일 낮은 계층의 프로토콜.

0 1 2 3
Destination Address
Destination Address Source Address
Source Address
Ethernet Type X

Ethernet 헤더는 도착지 MAC 주소가 6바이트, 출발지 MAC 주소가 6바이트 그리고 어떤 프로토콜의 데이터를 운반하는지 Ethernet Type 2바이트 필드로, 총 14바이트로 구성된다.

Ethernet Type은 리눅스 환경에서 /usr/include/net/ethernet.h 파일에 정의되어있다.

[그림 1-1] Ethernet Type

반응형