skbuff->dev and sk_buff->input_dev

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

 




Can someone explain what are the fields 'dev' and 'input_dev' in the skbuff structure.

The comment above the declaration of the struct states:
" *  @dev: Device we arrived on/are leaving by
 *  @input_dev: Device we arrived on
 *      @real_dev: The real device we are using
"

However, on one machine I saw that input_dev is always NULL (for incoming packets), while on another it is not.


Are there configurations where skbuff->input_dev is not initialized?
Are there configurations where skbuff->dev is not initialized??


Actually, I want to find out the device (its index )on which an incoming packet arrived. Is there a better way to do it? (One that works allways?)

Hayim.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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