net_device structure help

From: cranium2003 <hidden>
Date: 2005-05-17 09:55:31

hello,
        Is there any way in linux kernel network stack
at IP layer before adding IP header to know that
packet is transmitted to eth1 or forwarded to eth1 if
linux machine has 2 NIC's eth0 and eth1?
       I check net_device structre and found that
ifindex is the field that gives proper incoming packet
network interface at IP layer but same for packet
trasmission not works.
regards,
cranium



		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help