Try to print both values (addresses). My guess (a good one) is that (*pskb)->h.uh will give you a pointer to the beginning of the IP header. The thing is that h in sk_buff is an union. It has more possibilities than only uh. You should calculate the offset on your own. Remember, however, that just adding 5 may not be the right way to go if there are IP options (it's very rare but may happen). Use the value from IP header instead.
|