LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to send/receive the data packets through my own Ethernet driver b/w 2 pc (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-send-receive-the-data-packets-through-my-own-ethernet-driver-b-w-2-pc-705799/)

jagadisha_bs 02-19-2009 12:13 AM

Not able to send/receive the data packets through my own Ethernet driver b/w 2 pc
 
hi,
I have written Ethernet driver code for RTL8139.I removed default RTL8139 driver code,inserted the my own driver code.after this I set the Ip address(10.0.6.130)and made device up. but route command was showing nothing,so I added default route 10.0.6.14 now I can able to ping 10.0.6.28(server ip).checked by writing socket programs. executed both server and client program in my computer(used 10.0.6.130),it is communicating.But if I run client program on different computer it is saying "NO route to host" in connecting time of client even though I have added the route(10.0.6.14) (both computer has same route).

I am unable to ping 10.0.6.130 from the pc where I am running client program.

Please anyone help me out...
Thanks in advance...

frieza 02-19-2009 12:20 AM

hmm perhaps i'm not understanding correctly

you wrote your own driver for an ethernet card?
then you replaced the kernel module with this code?

can you ping from that machine to anything else on the network?

jagadisha_bs 02-20-2009 06:52 AM

yes,I wrote own driver for an ethernet card(rtl8139).
Then I removed kernel module 8139too and inserted my driver.

yes I can ping from my machine to another machine on the network.

But I can not ping to my machine from another machine on the network.

jagadisha_bs 02-25-2009 10:30 PM

Please anyone help me.
Thanks in advance.

frieza 02-25-2009 10:32 PM

perhaps your machine has a firewall that is preventing inbound traffic?
can you connect outbound using other protocols other then ICMP? such as http, ftp, etc?

jagadisha_bs 02-26-2009 12:31 AM

Thanks Frieza.
I can't connect outbound using http ftp protocol.
And what to do for firewall to accept the inbound traffic.


All times are GMT -5. The time now is 05:05 PM.