changing network card driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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

_________________________________________________________________
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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux