J
J
jajabin2019-10-08 18:38:48
linux
jajabin, 2019-10-08 18:38:48

What tools are needed to work with Ethernet Frame and Network layers?

Please tell me the toolkit, or where to get information or source code examples, for processing the second and third levels of the network model, the essence of the task is that it is necessary to intercept traffic on the interface, change the fields of the IPv4 header and let it go further, I wanted to use the gopacket package , but from the documentation, as I understand it, it only decodes data from the stream, I see it as a solution to use calls to the SI code from Go, but I know that it is desirable to avoid this. Googling, I realized that the most obvious solution is to write a kernel module, but there is very little experience for such a solution.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question