need to extract payload from the tcp packet
Hi,
I am writing a module for tcptrace in Fedora Linux ...I want to extract payload from the tcp packet and later search few bytes in it...
I have extracted the tcpheader through follwing code..
struct tcphdr *ptcp = (struct tcphdr *) ((char *)pip + 4*IP_HL(pip));
Is there any function or anything which I can use to extract payload and also how I can search the bytes in the payload ..any linux function or any suggestions how I can do that...
|