Capture network data before dev_queue_xmit and netif_rx in linux
Source: Internet
Author: User
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.
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.