Network sniffer based on socket and method thereof
A technology of network sniffing and sockets, which is applied in the field of network sniffers, can solve problems such as complex requests, and achieve the effect of small development workload, low cost, and rich data collection
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0053] Specific to the programming implementation of the network sniffer, the setting of the promiscuous mode of the network card is realized through the raw socket rawsocket, which is also different from the commonly used data stream socket and datagram socket. After creating the original socket, you need to set the IP datagram header operation option through the setsockopt() function, and then bind the original socket to the local network card through the binding function bind() function. In order for the original socket to accept all data, it needs to be set through the function ioctlsocket(), and it can also be specified whether to process the IP header by itself.
[0054] At this point, sniffing of network data packets can actually be started, and the acquisition of data packets is still done through the receiving function recv() function like a stream socket or a datagram socket. However, unlike the other two sockets, the data packets captured by the original socket ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com