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

skb->protocol value setting



hi,

i am working in linux network device driver.
When the packet is received by the interface, the
hardware header is used only by eth_type_trans
For e.g :
skb->protocol = eth_type_trans(skb,dev)

 When the packet is received, the receiving function
is expected to correctly set
skb->protocol,skb->pkt_type and skb->mac.raw


I am not getting to know what is the reason to set 
skb->protocol field and what "eth_type_trans" does.
Actually i have seen the implementation of
"eth_type_trans" but what not getting clear.

-vandana

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/