D
D
Danil Tunev2019-03-16 21:33:08
Arch Linux
Danil Tunev, 2019-03-16 21:33:08

How to use BERKELEY SOCKETS to tune in to multiple network interfaces?

Hello, how to connect a tcp socket to a specific board?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arkady Illarionov, 2020-02-26
@lada-guy

Create socket socket(AF_PACKET, ...).
Find out the board number, use it in a struct sockaddr_ll type variable, bind the created socket using this variable.
Read more: Capture only from a particular network
interface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question