Symbols
loading...
Files
loading...

simple_sniffer sample sample

simple_sniffer sample is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
Create a new pcap session, and returns pcap file handle
Delete the pcap session, and close the File Stream
Print the summary of pcap file into stream
Register pcap command
Write pcap file header
Capture one packet into pcap file
Capture a pcap package with parameters
Tell the pcap component to start sniff and write
Tell the pcap component to stop sniff
Event handler for Ethernet events

Other commonly used symbols

Name
Location
Summary
Type of pcap file handle
File handle
Pcap configuration Type Definition
Link Layer Type
Number of bytes of captured data, no longer than packet_length
Pointer to a standard file handle
Pcap version: major
Pcap version: minor
Pcap timezone code
Magic Number
Major Version
Minor Version
Max Length to Capture
Number of seconds since January 1st, 1970, 00:00:00 GMT
Number of microseconds when the packet was captured (offset from seconds)
Actual length of current packet
Ethernet, and Linux loopback devices
Pcap version: major
Pcap version: minor
Pcap timezone code
Magic value related to endian format
Time Zone Offset
Timestamp Accuracy
Whether the pcap file is recored in little endian format
Pcap Link Type
Loopback devices, except for later OpenBSD
LLC/SNAP encapsulated ATM
Raw IP, without link
OpenBSD loopback devices(with AF_value in network byte order)
USB packets, beginning with a USBPcap header
When this bit is set, the hardware will receive packets for which frame check sequence failed

Dependencies