프로그래밍/C언어를 활용한 네트워크 해킹

Ethernet 헤더

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

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

728x90
반응형

'프로그래밍 > C언어를 활용한 네트워크 해킹' 카테고리의 다른 글

ARP 프로토콜  (0) 2020.12.02
체크섬(Checksum)  (0) 2019.09.03
Packet Capture 라이브러리2  (0) 2019.09.03
Packet Capture 라이브러리  (0) 2019.09.03
RAW 소켓  (0) 2019.09.03