Hi ,
I am trying to compile AODV source code which is written for 2.4 Kernel.Now i am trying to port it to 2.6.15 (fedora 5.0 )kernel. I am getting these probem.
1.
skb->nfcache |= NFC_ALTERED
But in 2.6 sk_buff doesn't have nfcache. I have commented this for compiltaion .How to add this
2.
struct socket *sock;
sock->sk->broadcast=1;
sock->sk->protinfo.af_inet.ttl=ttl;
But in 2.6 struct sock is not having the broadcast and the protinfo is converted to void* in 2.6. How can i specify the ttl value. I have commented this for compilation. How to include htis
3.
nf_register_queue_handler(PF_INET, recvFn , data);
I converted it to
struct nf_queue_handler *qh;
qh = kmalloc(sizeof(qh),GFP_KERNEL);
qh->data = data;
qh->outfn = recvfn;
qh->name = name; // I don't know what is the use of the Func????.
// I just filled it by a string.
status = nf_register_queue_handler(PF_INET,qh);
Is it right???
4. The receive Function has a parameter
queuenum. What is the use of this.How to use this . I just left it as it is
5. And when i am trying to send a broadcast messgae using
sock_sendmsg,it is failing continuously .And I am getting a
-13 as the return value. What will be the problem.
Any help will be much helpfull for me
Regards
Gomathi S P