Take the 2-minute tour ×

Running the following code,I want to accept IP packets are defined but dropping all packets.. where is the my error? please help me

 struct iphdr* iph = ip_hdr(skb);
 struct sk_buff *sb = *skb;

 struct in_addr masterIP;

 masterIP.s_addr = htonl (in_aton("")); 
 iph->saddr = masterIP.s_addr;
 return NF_ACCEPT;
share|improve this question

Your Answer



Browse other questions tagged or ask your own question.