2010/071 iphdr 구조체와 in_addr 구조체 우선 (1) iphdr 구조체 /usr/include/linux/ip.h 에 정의되어 있다. 뭐 버전마다 다를수도 잇겟지만...-0-ㅋ struct iphdr { unsigned char ihl:4, // 헤더 길이 // header length unsigned int version:4; // 버전 // version unsigned char tos; // 서비스 타입 // type of service unsigned short tot_len; // 전체 길이 // total length unsigned short id; // identification unsigned short frag_off; // fragment offset field unsigned char ttl; // time to live .. 2010. 7. 8. 이전 1 다음