Re: network packets and netif_rx()

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

 



Hi, thanks for your replies.

"Lal" wrote:
> >  for( count = 0 ; count < reads ; count ++ ){
> Shouldn't it be count += 2 ??

Not exactly, 'reads' is a function of rxlen, not reported for clarity.
Actually is something like rxlen/2 plus some padding, but I snipped it out 
cause I'm pretty sure it works fine.

"Pranav Sawargaonkar" wrote: 
> To debug  try to parse eth header for packets you are receiving in your
> interrupt handler, especially  h_dest field and check that packets are
> having dest mac of your nic card.

MAC of my card if a 'statical' 00:00:de:ad:be:ef. 
Anyway, an ARP requesto shouldn't depends on the mac address.
That's what i see before calling netif_rx():

  1 ETHERNET FRAME: <dest> <source> <0x0806> -> correct
  2 ff ff  ff ff  ff ff   0 22  15  0  95 3c   8  6.  
  3 ARP REQUEST:
  4 <hwtype> <proto> -> ethernet / IP -> correct.
  5   0  1   8  0.  
  6 <hw/proto len> -> hw e prot address lenght (6->mac , 4->ip)
  7   6  4.  
  8 <oper> -> request
  9   0  1.  
 10 <source addresses> -> mac correct, eth: 192.168.1.92, correct.
 11   0 22  15  0 95 3c. 
 12  c0 a8  1 5c 
 13 <dest addresses>
 14  0  0  0  0   0  0.
 15  c0 a8   1 a8  -> 192.168.1.168, correct.

so, the request seems ok, but i don't stil see any transmition.
I'm wondering if netif_receive has every infos to process the packet, but 
I'm still not so experienced in net programming. :(

> If yes check that packets are not going outside through that other nic ,
>  this might be a reason why you are not seeing xmit being called.

no, there's no other nic card.

Thanks.bye!
-- 
-gaspa-
-----------------------------------------------
-------- https://launchpad.net/~gaspa ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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