1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sockets - How to find to which line(eth0 or eth1) a packet received belongs to ?

Discussion in 'Unix' started by liuxgate, Jan 11, 2012.

  1. liuxgate

    liuxgate New Member

    Joined:
    Jan 11, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page