当前位置: 首页 > 文档资料 > WinPcap 中文手册 >

WinPcap: Win32-Extensions.h File Reference

优质
小牛编辑
135浏览
2023-12-01

Go to the source code of this file.

Data Structures

structpcap_send_queue
A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit(). More...

Defines

#defineAIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_
This typedef is a support for the pcap_get_airpcap_handle() function.
#defineBPF_MEM_EX_IMM0xc0
#defineBPF_MEM_EX_IND0xe0
#defineBPF_MEM_EX0xc0
#defineBPF_TME0x08
#defineBPF_LOOKUP0x90
#defineBPF_EXECUTE0xa0
#defineBPF_INIT0xb0
#defineBPF_VALIDATE0xc0
#defineBPF_SET_ACTIVE0xd0
#defineBPF_RESET0xe0
#defineBPF_SET_MEMORY0x80
#defineBPF_GET_REGISTER_VALUE0x70
#defineBPF_SET_REGISTER_VALUE0x60
#defineBPF_SET_WORKING0x50
#defineBPF_SET_ACTIVE_READ0x40
#defineBPF_SET_AUTODELETION0x30
#defineBPF_SEPARATION0xff

Typedefs

typedef pcap_send_queuepcap_send_queue
typedef _AirpcapHandle *PAirpcapHandle

Functions

pcap_send_queue *pcap_sendqueue_alloc (u_int memsize)
voidpcap_sendqueue_destroy (pcap_send_queue *queue)
intpcap_sendqueue_queue (pcap_send_queue *queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data)
u_intpcap_sendqueue_transmit (pcap_t *p, pcap_send_queue *queue, int sync)
HANDLEpcap_getevent (pcap_t *p)
pcap_stat *pcap_stats_ex (pcap_t *p, int *pcap_stat_size)
intpcap_setuserbuffer (pcap_t *p, int size)
intpcap_live_dump (pcap_t *p, char *filename, int maxsize, int maxpacks)
intpcap_live_dump_ended (pcap_t *p, int sync)
intpcap_offline_filter (struct bpf_program *prog, const struct pcap_pkthdr *header, const u_char *pkt_data)
intpcap_start_oem (char *err_str, int flags)
PAirpcapHandlepcap_get_airpcap_handle (pcap_t *p)