R
R
RST0012021-06-10 05:56:43
linux
RST001, 2021-06-10 05:56:43

RAW sockets and network device APIs in Linux. What is the literature?

For Linux + networking books enough. I need more specialized ones. In those that are available, I found only high-level sockets (not RAW sockets). And on the API of network devices I did not find any books at all.

Edit. I expressed myself incorrectly. You should say "Network Device Driver API" instead of "Network Device API". I'm looking for something to read about how to manage exactly the network driver (not hardware APIs, but software ones).

Edit. RAW sockets need a way to disable promiscuous mode - this is in particular. In general, also other settings for the mode of operation of the RAW socket.

Edit. The API I'm looking for is either a library header file or an example library function.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2021-06-10
@res2001

For Linux + networking books enough.

Good books are clearly not enough, in my opinion.
About raw socket it is written in "Unix. Development of network applications" by Stevens. The book is old, there are no new editions. But the information is relevant enough.
About the network device API - what do you mean? Writing network drivers? The level of hardware is described in the documentation of the chip manufacturer, as for interaction with the core - take an example of any driver and remake it for your hardware. In the new driver of changes from the side of interaction with the OS there will be a minimum, most likely.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question