이더넷 헤더 구조체 의 구성을 알고 싶습니다.
ethereal 써보세요
----http://www.planetmono.org
TCP/IP 서적을 보시면 도움이 될것입니다.
리눅스의 include(?) 디렉토리 안에 ip.h(?)아니면 비슷한 파일에 선언되어 있습니다.
질문하신게 일반적인 Ethernet header를 말씀하시는 거라면,
#define ETHER_ADDR_LEN 6 struct ether_header { u_int8_t ether_dhost[ETHER_ADDR_LEN]; u_int8_t ether_shost[ETHER_ADDR_LEN]; u_int16_t ether_type; };
경우에 따라서 struct은 packed로 되어 있을 수도 있구요.
ethereal 써보세요
ethereal 써보세요
----
http://www.planetmono.org
Re: 이더넷 헤더 구조체가 어떻게 구성되어 잇나요?
TCP/IP 서적을 보시면 도움이 될것입니다.
리눅스의 include(?) 디렉토리 안에 ip.h(?)아니면 비슷한 파
리눅스의 include(?) 디렉토리 안에 ip.h(?)아니면 비슷한 파일에 선언되어 있습니다.
Ethernet Header 구조
질문하신게 일반적인 Ethernet header를 말씀하시는 거라면,
#define ETHER_ADDR_LEN 6 struct ether_header { u_int8_t ether_dhost[ETHER_ADDR_LEN]; u_int8_t ether_shost[ETHER_ADDR_LEN]; u_int16_t ether_type; };이렇게 선언되어 있어요.
각각 destination, source 그리고 ethernet type .
경우에 따라서 struct은 packed로 되어 있을 수도 있구요.