Capture network data before dev_queue_xmit and netif_rx in linux
Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
In linux, dev_queue_xmit and netif_rx are used to intercept network data-Linux general technology-Linux programming and kernel information. For more information, see the following. Linux kernel 2.6.36
To intercept wireless network data, including the sent and received data, and then use wired transmission. Now I have found the sending and receiving functions in the linux protocol stack. I want to use the skb_copy function to copy the data and then forward the changes to a character device. Then, a socket application is used to control the data reading on the wired network. What are the specific processing processes? I just learned the protocol stack, but I don't know it in many places. There is also how to find the locations of the two functions, is it in the driver? The wired network card is DM9000, while the wireless network card is SD_wifi. If you want to provide similar source code, you can refer to it.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.