Hi Shyam, On Wednesday 05 November 2003 16:07, shyam jith wrote: > hello everybody, > > A few weeks before sent a mail regarding a prortocol handler problem.My > problem was my protocol handler was not called during the arrival of > packet. But now i tried to accomplish the same task from the network card > driver . > > ie changed the code for 8139too.c by including a function > my_fuction(sk_buff *). > This function is called from the beginning of rtl8139_start_xmit (struct > sk_buff *skb, struct net_device *dev) of the driver . It works fine but > what i want to do now is masq the ip address for > packets for 192.168.0.203 to 192.168.0.256 . the functions compares each > packets > skb->nh.iph->daddr fileld with 192.168.0.203 and masqs it .But when i am > pinging to 203 i should get the response from 253 , but its not going well > for the time . .I dont know whether it will work or not any body please What r u checking for as response . a) Is it the ping reply like this [shine@shine shine]$ ping 192.168.0.84 PING 192.168.0.84 (192.168.0.84) 56(84) bytes of data. 64 bytes from 192.168.0.84: icmp_seq=1 ttl=64 time=0.057 ms 64 bytes from 192.168.0.84: icmp_seq=2 ttl=64 time=0.029 ms b) or are u checking for any ping reply from 192.168.0.256 through tcpdump (and I think it must be an ICMP packet). [shine@shine shine]$ tcpdump -i eth0 If u r checking the response like the former option (a), it may not work ... since u will not get any ping reply from 192.168.0.203 and the ping is checking for the reply from 192.168.0.203. So better go for the second one, u will get a response. > give an advice.I know iptables is best for these type of practise ,but Just > for my sake i wanted to try it out.i am using redhat 2.4 > > regards > shyamjith > Regards, Shine Mohamed > _________________________________________________________________ > Access Hotmail from your mobile now. > http://server1.msn.co.in/sp03/mobilesms/ Click here. > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/