1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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