This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Choosing Ethernet device for transfer data

Hello everyone,

I am using HawkBoard. Also I am using on-board ethernet controller with NDK 2.22.00.06 (for TCP/IP) and SYS/BIOS .

I am going to use additionally ethernet controller which has SPI interface. I have some ideas how to implement driver for additionally controller, but I have difficulties with switches devices for transfering data.

How I can make binding a specific socket to a specific device for transfer data?

Thanks,

Ilya

  • Hello everyone,

    I hope it will be useful to someone.

    As variant, I think, I can manually add the specified IP host address (and mask) to the specified logical interface handle through NtAddNetwork(HANDLE hIF, IPN IPHost, IPN IPMask) function for get IP adress for second ethernet controller. So we get one IP address for each subnet connected to our board. When we send data TCP/IP stack will choose the required interface, depending on the subnet in which the host destination, based on the subnet mask.

    If this is not true, please correct me.

    Thanks,

    Ilya

  • Glad to see this was resolved.