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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice