libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pcap Struct Reference

#include <pcap-int.h>

Collaboration diagram for pcap:
[legend]

Data Fields

read_op_t read_op
 
next_packet_op_t next_packet_op
 
int fd
 
u_int bufsize
 
void * buffer
 
u_char * bp
 
int cc
 
sig_atomic_t break_loop
 
void * priv
 
int swapped
 
FILE * rfile
 
u_int fddipad
 
struct pcapnext
 
int version_major
 
int version_minor
 
int snapshot
 
int linktype
 
int linktype_ext
 
int offset
 
int activated
 
int oldstyle
 
struct pcap_opt opt
 
u_char * pkt
 
pcap_direction_t direction
 
int bpf_codegen_flags
 
int selectable_fd
 
const struct timeval * required_select_timeout
 
struct bpf_program fcode
 
char errbuf [256+1]
 
int dlt_count
 
u_int * dlt_list
 
int tstamp_type_count
 
u_int * tstamp_type_list
 
int tstamp_precision_count
 
u_int * tstamp_precision_list
 
struct pcap_pkthdr pcap_header
 
activate_op_t activate_op
 
can_set_rfmon_op_t can_set_rfmon_op
 
inject_op_t inject_op
 
save_current_filter_op_t save_current_filter_op
 
setfilter_op_t setfilter_op
 
setdirection_op_t setdirection_op
 
set_datalink_op_t set_datalink_op
 
getnonblock_op_t getnonblock_op
 
setnonblock_op_t setnonblock_op
 
stats_op_t stats_op
 
breakloop_op_t breakloop_op
 
pcap_handler oneshot_callback
 
cleanup_op_t cleanup_op
 

Detailed Description

Definition at line 200 of file pcap-int.h.

Field Documentation

◆ activate_op

◆ activated

◆ bp

◆ bpf_codegen_flags

◆ break_loop

◆ breakloop_op

◆ buffer

◆ bufsize

◆ can_set_rfmon_op

◆ cc

◆ cleanup_op

◆ direction

◆ dlt_count

◆ dlt_list

◆ errbuf

char pcap::errbuf[256+1]

Definition at line 295 of file pcap-int.h.

Referenced by activate_pf_packet(), airpcap_activate(), airpcap_inject(), airpcap_live_dump(), airpcap_live_dump_ended(), airpcap_oid_get_request(), airpcap_oid_set_request(), airpcap_read(), airpcap_sendqueue_transmit(), airpcap_set_datalink(), airpcap_setbuff(), airpcap_setmintocopy(), airpcap_setmode(), airpcap_setuserbuffer(), airpcap_stats(), airpcap_stats_ex(), bpf_set_error(), bt_activate(), bt_inject_linux(), bt_monitor_activate(), bt_monitor_inject(), bt_monitor_read(), bt_read_linux(), bt_stats_linux(), create_ring(), dag_activate(), dag_get_datalink(), dag_inject(), dag_read(), dag_setnonblock(), dag_stats(), dbus_activate(), dbus_getnonblock(), dbus_read(), dbus_setnonblock(), dbus_write(), device_still_exists(), dlpromiscon(), fix_program(), grow_buffer(), iface_dsa_get_proto_info(), init_tpacket(), install_bpf_program(), netfilter_activate(), netfilter_inject_linux(), netfilter_read_linux(), nit_setflags(), pcap_activate(), pcap_activate_bpf(), pcap_activate_dlpi(), pcap_activate_dos(), pcap_activate_haiku(), pcap_activate_libdlpi(), pcap_activate_linux(), pcap_activate_nit(), pcap_activate_npf(), pcap_activate_pf(), pcap_activate_sita(), pcap_activate_snit(), pcap_activate_snoop(), pcap_alloc_databuf(), pcap_can_set_rfmon_dead(), pcap_check_activated(), pcap_cleanup_linux(), pcap_compile(), pcap_createfilter_norpcappkt(), pcap_do_addexit(), pcap_dpdk_activate(), pcap_dpdk_inject(), pcap_dump_fopen(), pcap_dump_open(), pcap_dump_open_append(), pcap_geterr(), pcap_getnonblock(), pcap_getnonblock_dead(), pcap_getnonblock_fd(), pcap_getnonblock_rpcap(), pcap_handle_packet_mmap(), pcap_inject(), pcap_inject_acn(), pcap_inject_bpf(), pcap_inject_dead(), pcap_inject_dlpi(), pcap_inject_haiku(), pcap_inject_libdlpi(), pcap_inject_linux(), pcap_inject_nit(), pcap_inject_npf(), pcap_inject_pf(), pcap_inject_snit(), pcap_inject_snoop(), pcap_list_datalinks(), pcap_list_tstamp_types(), pcap_live_dump_npf(), pcap_netmap_activate(), pcap_next_packet(), pcap_ng_next_packet(), pcap_oid_get_request_npf(), pcap_oid_set_request_npf(), pcap_open(), pcap_open_live(), pcap_pack_bpffilter(), pcap_perror(), pcap_process_mactype(), pcap_read_bpf(), pcap_read_dead(), pcap_read_dlpi(), pcap_read_haiku(), pcap_read_libdlpi(), pcap_read_nit(), pcap_read_nocb_remote(), pcap_read_npf(), pcap_read_pf(), pcap_read_snit(), pcap_read_snoop(), pcap_sendpacket(), pcap_sendqueue_transmit_npf(), pcap_set_datalink(), pcap_set_datalink_dead(), pcap_set_not_initialized_message(), pcap_setbuff_npf(), pcap_setdirection(), pcap_setdirection_bpf(), pcap_setdirection_dead(), pcap_setfilter_bpf(), pcap_setfilter_dead(), pcap_setfilter_linux(), pcap_setfilter_pf(), pcap_setfilter_win32_dag(), pcap_setmintocopy_npf(), pcap_setmode_npf(), pcap_setnonblock(), pcap_setnonblock_dead(), pcap_setnonblock_fd(), pcap_setnonblock_npf(), pcap_setnonblock_rpcap(), pcap_setsampling_remote(), pcap_setup_dump(), pcap_setuserbuffer_npf(), pcap_startcapture_remote(), pcap_stats_bpf(), pcap_stats_dead(), pcap_stats_dos(), pcap_stats_ex(), pcap_stats_ex_npf(), pcap_stats_haiku(), pcap_stats_linux(), pcap_stats_npf(), pcap_stats_snoop(), pcap_updatefilter_remote(), pcap_wait_for_frames_mmap(), prepare_tpacket_socket(), rdmasniff_activate(), rpcap_stats_rpcap(), septel_getnonblock(), septel_inject(), set_kernel_filter(), setup_mmapped(), sf_inject(), sf_setdirection(), sf_setnonblock(), sf_stats(), snf_activate(), snf_inject(), snf_pcap_stats(), snf_read(), TcActivate(), TcGetNonBlock(), TcInject(), TcRead(), TcSetNonBlock(), TcStats(), usb_activate(), usb_inject_linux(), usb_read_linux_bin(), usb_read_linux_mmap(), usb_set_ring_size(), and usb_stats_linux_bin().

◆ fcode

◆ fd

int pcap::fd

Definition at line 214 of file pcap-int.h.

Referenced by acn_read_n_bytes_with_timeout(), activate_pf_packet(), bt_activate(), bt_monitor_activate(), bt_monitor_read(), bt_read_linux(), bt_stats_linux(), create_ring(), dag_activate(), dag_get_datalink(), dag_platform_cleanup(), dag_read(), dag_setnonblock(), dbus_activate(), destroy_ring(), device_still_exists(), dlpromiscon(), init_tpacket(), netfilter_activate(), netfilter_read_linux(), netfilter_send_config_msg(), nit_setflags(), pcap_activate_bpf(), pcap_activate_dlpi(), pcap_activate_dos(), pcap_activate_libdlpi(), pcap_activate_linux(), pcap_activate_nit(), pcap_activate_pf(), pcap_activate_sita(), pcap_activate_snit(), pcap_activate_snoop(), pcap_alloc_pcap_t(), pcap_cleanup_acn(), pcap_cleanup_dos(), pcap_cleanup_libdlpi(), pcap_cleanup_linux(), pcap_cleanup_live_common(), pcap_create_interface(), pcap_dpdk_activate(), pcap_fileno(), pcap_getnonblock_fd(), pcap_inject_bpf(), pcap_inject_dlpi(), pcap_inject_linux(), pcap_inject_nit(), pcap_inject_pf(), pcap_inject_snit(), pcap_inject_snoop(), pcap_netmap_activate(), pcap_netmap_dispatch(), pcap_read_acn(), pcap_read_bpf(), pcap_read_dlpi(), pcap_read_dos(), pcap_read_haiku(), pcap_read_nit(), pcap_read_one(), pcap_read_pf(), pcap_read_snit(), pcap_read_snoop(), pcap_sendpacket_dos(), pcap_setfilter_acn(), pcap_setfilter_bpf(), pcap_setfilter_pf(), pcap_setnonblock_fd(), pcap_stats_acn(), pcap_stats_bpf(), pcap_stats_dos(), pcap_stats_ex(), pcap_stats_linux(), pcap_stats_snoop(), pcap_wait_for_frames_mmap(), reset_kernel_filter(), set_kernel_filter(), usb_activate(), usb_mmap(), usb_read_linux_bin(), usb_read_linux_mmap(), usb_set_ring_size(), and usb_stats_linux_bin().

◆ fddipad

◆ getnonblock_op

◆ inject_op

◆ linktype

◆ linktype_ext

int pcap::linktype_ext

◆ next

struct pcap* pcap::next

Definition at line 236 of file pcap-int.h.

Referenced by pcap_add_to_pcaps_to_close(), and pcap_remove_from_pcaps_to_close().

◆ next_packet_op

next_packet_op_t pcap::next_packet_op

Definition at line 209 of file pcap-int.h.

Referenced by pcap_check_header(), pcap_ng_check_header(), and pcap_offline_read().

◆ offset

◆ oldstyle

int pcap::oldstyle

Definition at line 252 of file pcap-int.h.

Referenced by pcap_activate_bpf(), and pcap_open_live().

◆ oneshot_callback

◆ opt

struct pcap_opt pcap::opt

Definition at line 252 of file pcap-int.h.

Referenced by activate_pf_packet(), airpcap_activate(), airpcap_setnonblock(), bt_activate(), bt_monitor_activate(), create_ring(), dag_activate(), dag_read(), dbus_activate(), dlpromiscon(), dpdk_read_with_timeout(), netfilter_activate(), nit_setflags(), pcap_activate(), pcap_activate_bpf(), pcap_activate_dlpi(), pcap_activate_dos(), pcap_activate_haiku(), pcap_activate_libdlpi(), pcap_activate_linux(), pcap_activate_nit(), pcap_activate_npf(), pcap_activate_pf(), pcap_activate_sita(), pcap_activate_snit(), pcap_activate_snoop(), pcap_can_set_rfmon_linux(), pcap_can_set_rfmon_npf(), pcap_check_header(), pcap_cleanup_npf(), pcap_close(), pcap_create(), pcap_create_common(), pcap_dpdk_activate(), pcap_dpdk_dispatch(), pcap_dump_open_append(), pcap_get_tstamp_precision(), pcap_netmap_activate(), pcap_ng_check_header(), pcap_open(), pcap_open_dead_with_tstamp_precision(), pcap_open_offline_common(), pcap_open_rpcap(), pcap_protocol(), pcap_read_acn(), pcap_read_bpf(), pcap_read_linux_mmap_v2(), pcap_read_nocb_remote(), pcap_read_one(), pcap_set_buffer_size(), pcap_set_immediate_mode(), pcap_set_promisc(), pcap_set_protocol_linux(), pcap_set_rfmon(), pcap_set_timeout(), pcap_set_tstamp_precision(), pcap_set_tstamp_type(), pcap_set_wait(), pcap_setnonblock_npf(), pcap_setnonblock_unactivated(), pcap_startcapture_remote(), pcap_stats_linux(), prepare_tpacket_socket(), rdmasniff_activate(), setup_mmapped(), sf_write_header(), snf_activate(), snf_read(), snf_setnonblock(), TcActivate(), and usb_activate().

◆ pcap_header

struct pcap_pkthdr pcap::pcap_header

Definition at line 304 of file pcap-int.h.

Referenced by pcap_next_ex().

◆ pkt

u_char* pcap::pkt

Definition at line 259 of file pcap-int.h.

◆ priv

void* pcap::priv

Definition at line 227 of file pcap-int.h.

Referenced by activate_pf_packet(), add_interface(), airpcap_activate(), airpcap_breakloop(), airpcap_cleanup(), airpcap_get_airpcap_handle(), airpcap_getevent(), airpcap_getnonblock(), airpcap_inject(), airpcap_read(), airpcap_set_datalink(), airpcap_setbuff(), airpcap_setfilter(), airpcap_setmintocopy(), airpcap_setnonblock(), airpcap_stats(), airpcap_stats_ex(), bt_activate(), bt_stats_linux(), create_ring(), dag_activate(), dag_get_datalink(), dag_platform_cleanup(), dag_read(), dag_setnonblock(), dag_stats(), dbus_activate(), dbus_cleanup(), dbus_read(), dbus_stats(), dbus_write(), destroy_ring(), device_still_exists(), dlpromiscon(), dpdk_read_with_timeout(), fix_program(), init_tpacket(), linux_check_direction(), netfilter_read_linux(), netfilter_stats_linux(), pcap_activate_bpf(), pcap_activate_dlpi(), pcap_activate_haiku(), pcap_activate_libdlpi(), pcap_activate_linux(), pcap_activate_npf(), pcap_activate_pf(), pcap_alloc_pcap_t(), pcap_breakloop_linux(), pcap_breakloop_npf(), pcap_check_header(), pcap_cleanup_bpf(), pcap_cleanup_dlpi(), pcap_cleanup_dos(), pcap_cleanup_libdlpi(), pcap_cleanup_linux(), pcap_cleanup_npf(), pcap_cleanup_rpcap(), pcap_create_interface(), pcap_createfilter_norpcappkt(), pcap_dpdk_activate(), pcap_dpdk_close(), pcap_dpdk_dispatch(), pcap_dpdk_getnonblock(), pcap_dpdk_setnonblock(), pcap_dpdk_stats(), pcap_get_ring_frame_status(), pcap_getevent_npf(), pcap_getnonblock_bpf(), pcap_getnonblock_linux(), pcap_getnonblock_npf(), pcap_handle_packet_mmap(), pcap_inject_dlpi(), pcap_inject_libdlpi(), pcap_inject_linux(), pcap_inject_npf(), pcap_live_dump_ended_npf(), pcap_live_dump_npf(), pcap_netmap_activate(), pcap_netmap_close(), pcap_netmap_dispatch(), pcap_netmap_filter(), pcap_netmap_inject(), pcap_netmap_ioctl(), pcap_netmap_stats(), pcap_next_packet(), pcap_ng_check_header(), pcap_ng_cleanup(), pcap_ng_next_packet(), pcap_oid_get_request_npf(), pcap_oid_set_request_npf(), pcap_oneshot_linux(), pcap_open_rpcap(), pcap_process_pkts(), pcap_read_bpf(), pcap_read_haiku(), pcap_read_libdlpi(), pcap_read_linux_mmap_v2(), pcap_read_nit(), pcap_read_nocb_remote(), pcap_read_npf(), pcap_read_one(), pcap_read_pf(), pcap_read_rpcap(), pcap_read_snit(), pcap_read_snoop(), pcap_save_current_filter_rpcap(), pcap_sendqueue_transmit_npf(), pcap_set_wait(), pcap_setbuff_npf(), pcap_setfilter_bpf(), pcap_setfilter_linux(), pcap_setfilter_npf(), pcap_setfilter_pf(), pcap_setfilter_rpcap(), pcap_setmintocopy_npf(), pcap_setmode_npf(), pcap_setnonblock_bpf(), pcap_setnonblock_linux(), pcap_setnonblock_npf(), pcap_setsampling_remote(), pcap_startcapture_remote(), pcap_stats_dlpi(), pcap_stats_dos(), pcap_stats_ex_npf(), pcap_stats_haiku(), pcap_stats_linux(), pcap_stats_nit(), pcap_stats_npf(), pcap_stats_pf(), pcap_stats_snit(), pcap_stats_snoop(), pcap_updatefilter_remote(), pcap_wait_for_frames_mmap(), rdmasniff_activate(), rdmasniff_cleanup(), rdmasniff_create(), rdmasniff_oneshot(), rdmasniff_post_recv(), rdmasniff_read(), rdmasniff_stats(), read_block(), rpcap_stats_rpcap(), septel_stats(), setup_mmapped(), snf_activate(), snf_create(), snf_getnonblock(), snf_inject(), snf_pcap_stats(), snf_platform_cleanup(), snf_read(), snf_setnonblock(), TcActivate(), TcCleanup(), TcInject(), TcRead(), TcStats(), usb_activate(), usb_cleanup_linux_mmap(), usb_mmap(), usb_read_linux_bin(), usb_read_linux_mmap(), and usb_stats_linux_bin().

◆ read_op

◆ required_select_timeout

const struct timeval* pcap::required_select_timeout

◆ rfile

◆ save_current_filter_op

save_current_filter_op_t pcap::save_current_filter_op

Definition at line 314 of file pcap-int.h.

Referenced by pcap_compile(), and pcap_open_rpcap().

◆ selectable_fd

◆ set_datalink_op

◆ setdirection_op

◆ setfilter_op

◆ setnonblock_op

◆ snapshot

◆ stats_op

◆ swapped

◆ tstamp_precision_count

int pcap::tstamp_precision_count

◆ tstamp_precision_list

u_int* pcap::tstamp_precision_list

◆ tstamp_type_count

int pcap::tstamp_type_count

◆ tstamp_type_list

u_int* pcap::tstamp_type_list

◆ version_major

int pcap::version_major

Definition at line 244 of file pcap-int.h.

Referenced by pcap_check_header(), pcap_major_version(), and pcap_ng_check_header().

◆ version_minor

int pcap::version_minor

Definition at line 245 of file pcap-int.h.

Referenced by pcap_check_header(), pcap_minor_version(), and pcap_ng_check_header().


The documentation for this struct was generated from the following file: