opening packet captured and reading data
can someone tell me how can i open the packet i have captured n read the data in it... i've printed the headers but i'm not able to print the data even by using the sk_buff->data and sk_buff->tail...
thanks in advance... |
Where or how do you capture packet?
|
i'm capturing the packet using netfilter hooks
nfho.hook = hook_func; nfho.hooknum = NF_INET_PRE_ROUTING; nfho.pf = PF_INET; nfho.priority = NF_IP_PRI_LAST; nf_register_hook(&nfho); i've been able to read tcp headers udp headers but now i need to print the payload of the packet |
If the data pointer in skb doesn't work, you can raw pointer.
|
Quote:
|
You can try 'raw' pointer of 'nh' union in skb.
|
All times are GMT -5. The time now is 02:00 AM. |