Re: Receiving problem in Realtek RTL8139D(L) network card driver implementation




manoher wrote:
I am a newbie to the device driver developement in Linux. I am using
Redhat9( linux kernel 2.4.20). I hav written a driver for Realtek
rtl8139D network card. I am able to activate the device by following
command.

# ifconfig rtl up

However i am setting IP address of network interface 'rtl' outside the
code by using # ifconfig rtl 192.168.0.30 -netmask 255.255.255.0

After this, when i ping a host, driver saying transmission of ICMP
packet was successful which I checked by TransmissionOK bit in
Interrupt Status Register of device( which prints text "TxOk" for
successfull transmission in interrupt handler) and also incrementing
transmitted packets counter in interrupt handler. But it is giving
error "DESTINATION HOST UNREACHABLE" as follows

# ping 192.168.0.70
icmp packet 1: DESTINATION HOST UNREACHABLE
TxOk
icmp packet 2: DESTINATION HOST UNREACHABLE
TxOk
and giving number of receiving packets counter is zero ( 100% loss in
PING)

as far as receiving code in interrupt handler is concerned, i think
interrupt handler is OK...
Plz point out the problem as i hav been struggling here since 10 days


is it recieving code problem? or setting ip address externally by
ifconfig command ? or any thing else?

Well I dont think its a receiving code problem, though that possibility
cannot be fully removed. Try pinging to the same ip address what u have
specified for the network card. See, if its able to ping or not. If it
doesnt, try to populate the arp cache by arp command(arp -s <target ip
address> <mac address>). Then try to ping it

This network card driver is too big to figure out the problem from this
snippet.

Regards,

sudip

.



Relevant Pages

  • Re: Network fails on Lenny
    ... but my machine didn't work on ant other connection (not even direct ... Check if your network card has been detected ... Ping tests. ... If not then try another DNS server. ...
    (Debian-User)
  • RE: Communication ISsue
    ... The network card appears to work fine. ... I've ping a remote PC no problem ... Check the network card to see if it is working fine. ... Microsoft Global Technical Support Center ...
    (microsoft.public.win2000.networking)
  • Re: resolve
    ... > I have two different IP`s on the same network card and two different A ... FQDN gets it right from DNS. ... So you are saying when you ping by FQDN: ... WINS entries, LMHOSTS entries? ...
    (microsoft.public.win2000.dns)
  • I cant ping 172.0.0.1 or the static ip address on the local networ
    ... Hi, my computer is windows xp pro, with static ip of 192.168.0.4 and subnet ... When i ping 172.0.0.1 i sometimes get destination host unreachable, ... I have windows firewall turned off and am using norton internet security ... I tried putting a pci network card in to fix the problem but with no success. ...
    (microsoft.public.windowsxp.network_web)
  • cant ping 172.0.0.1 or static ip address on local pear to pear net
    ... Hi, my computer is windows xp pro, with static ip of 192.168.0.4 and subnet ... When i ping 172.0.0.1 i sometimes get destination host unreachable, ... I have windows firewall turned off and am using norton internet security ... I tried putting a pci network card in to fix the problem but with no success. ...
    (microsoft.public.windowsxp.network_web)