catch the tcp header for modification from the kernel
hi,
i am using the debian linux and am working on the 2.6.6 kernel.
i want to access the tcp header, modify it (by passing it through my function) and then
put it back for the regular flow to continue.
can somebody tell me where i can access TCP header....
this is what i think is right
1.will using (struct sk_buff*)skb->h.th be sufficient
2.using hook to divert the regular flow.
3.passing it to my function.
4.putting it back.
am i right???
the other question is i tried writing a small module with the init and exit
fucntions for the module. It complies correctly...but when i do a
insmod module.o....i get an error saying -1 invalid module format.
Is this because the module is not complied as module.ko???
thanx in advance,
|