Skip to contentSkip to conversation

network device structure help

DISCUSSION cranium2003 1 participant 1 message May 17, 2005

lore
Share & tools
lore
#0 lore raw

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

__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250