skbuff에 대해서...
netfilter에 대해 공부를 하는데... 어제 new5244님이 추천한 문서를 보고 있습니다. (http://www.phrack.org/show.php?p=61&a=13) 그런데.. 좀 이상한 부분이 있어서 이렇게 글을 올립니다.
4.1 A closer look at hook functions 에 나오는 부분으로 sk_buff의 멤버에 관한 이야기입니다.
One should note that the transport header and network header may very well point to the same location in memory. This is the case for TCP packets where h and nh are both considered as pointers to IP header structures. This means that attempting to get a value from h->th thinking it's pointing to the TCP header will result in false results because h->th will actually be pointing to the IP header, just like nh->iph.
TCP 패킷에 대해서는 트랜스 포트레이어의 헤더와 네트워크 레이어의 헤더가 같다라고 해석 되는데...
저로서는 이해가 안가는 군요.
코맨트좀 달아 주세요~~
*skbuff에 대한 이해는 ..
위의 링크를 따라가시면 sK_buff에 대한 이해도를 높이기 편하실꺼예요
레이어가 같다는 의미가 아니라 sk_buff가 가지고 있는 pointer의 위치가
같고 union structure라 호출할 때 이렇게 해야 한다를 나타낸것 같은데요.
행복하세요 ^_^
답변 감사합니다.
영어가 짧았나보군요... -_-
Do you think that's the air you are breathing now?
댓글 달기