eth_type_trans and protocol field query

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

 



Hi,

eth_type_trans(...); is used in drivers RX method to get the type of
the protocol for the L3 layer.Then the respective method of the L3
layer is invoked for the found protocol because the L3 layer supports
more than one protocols. Is this right?

Secondly , does this arguments hold true for just L2 ethernet layer or
this is generic across the networking stack. i.e to identify the
protocol of the packet/frame at nth level so that n+1 level's correct
handler can be invoked using netif_rx(...)?

Does this means code at the nth level will look into the packet beyond
its header to figure out the protocol of the associated packet or
frame?

Code pointers will be appreciated.

Thank you.

--psr

--
play the game

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