Re: skbuff->dev and sk_buff->input_dev

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

 




I don't think this is a good idea.

1. You might never send a packet to the MAC you received the packet from. In that case the enrty for this MAC will not appear in the routing-table. (I actually say this configuration in some ISPs)

2. Even if you do, maybe you receive packets from this MAC on a different interface than that you send on.

3. What about a sniffer in promiscuous mode, then nothing appears in your ARP/routing tables. so you can't tell anything.


Hayim.


On Mon, 18 Jul 2005 kdenki@xxxxxx wrote:


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?)
You can look in the routing Table with the reverse adress (change source and destination adress). There you schould find the device where you got the packet from.

I hope this is corect for every case.

CU
Katharina
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.

[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