Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   sockets - How to find to which line(eth0 or eth1) a packet received belongs to ? (http://www.go4expert.com/forums/sockets-line-eth0-eth1-packet-received-t27580/)

liuxgate 11Jan2012 19:05

sockets - How to find to which line(eth0 or eth1) a packet received belongs to ?
 
hi,
i've two lines - eth0 and eth1 on my board and using tcp sockets. I've used INADDR_ANY in bind(). I get packets on
both eth0 and eth1. How to find to which line(eth0 or eth1) a packet received belongs to ? OS - linux

Thanks & Regards,
liuxgate


All times are GMT +5.5. The time now is 16:02.