이더넷 소켓 프로그래밍
이더넷 소켓 프로그래밍 2계층 Protocol - PDU : Packet - Tunneling( GRE, L2TP, PPTP, ...) - ARP (Address Resolution Protocol ) - 주소체계 : MAC Address( H/W Address ) 이더넷 헤더(Ethernet Header) : 14바이트 고정크기 1) 도착지 맥주소 (6바이트) 2) 출발지 맥주소 (6바이트) 3) 이더넷 타입 (2바이트) : IPv4, IPv6, ARP, ... 0x0800 : IPv4 0x86DD : IPv6 0x806 : ARP 더 많은 이더넷 타입 참고 : https://en.wikipedia.org/wiki/EtherType [ sniffer 소스코드 ] [ sniffer 결과창 ] sniffe..