/freebsd/contrib/libpcap/pcap/ |
H A D | pcap.h | 163 typedef struct pcap pcap_t; typedef 450 PCAP_API pcap_t *pcap_create(const char *, char *); 453 PCAP_API int pcap_set_snaplen(pcap_t *, int); 456 PCAP_API int pcap_set_promisc(pcap_t *, int); 459 PCAP_API int pcap_can_set_rfmon(pcap_t *); 462 PCAP_API int pcap_set_rfmon(pcap_t *, int); 465 PCAP_API int pcap_set_timeout(pcap_t *, int); 468 PCAP_API int pcap_set_tstamp_type(pcap_t *, int); 471 PCAP_API int pcap_set_immediate_mode(pcap_t *, int); 474 PCAP_API int pcap_set_buffer_size(pcap_t *, int); [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-int.h | 187 typedef int (*activate_op_t)(pcap_t *); 188 typedef int (*can_set_rfmon_op_t)(pcap_t *); 189 typedef int (*read_op_t)(pcap_t *, int cnt, pcap_handler, u_char *); 190 typedef int (*next_packet_op_t)(pcap_t *, struct pcap_pkthdr *, u_char **); 191 typedef int (*inject_op_t)(pcap_t *, const void *, int); 192 typedef void (*save_current_filter_op_t)(pcap_t *, const char *); 193 typedef int (*setfilter_op_t)(pcap_t *, struct bpf_program *); 194 typedef int (*setdirection_op_t)(pcap_t *, pcap_direction_t); 195 typedef int (*set_datalink_op_t)(pcap_t *, int); 196 typedef int (*getnonblock_op_t)(pcap_t *); [all …]
|
H A D | savefile.c | 70 static pcap_t *pcap_fopen_offline_with_tstamp_precision(FILE *, u_int, char *); 87 sf_getnonblock(pcap_t *p _U_) in sf_getnonblock() 97 sf_setnonblock(pcap_t *p, int nonblock _U_) in sf_setnonblock() 113 sf_cant_set_rfmon(pcap_t *p _U_) in sf_cant_set_rfmon() 123 sf_stats(pcap_t *p, struct pcap_stat *ps _U_) in sf_stats() 132 sf_stats_ex(pcap_t *p, int *size _U_) in sf_stats_ex() 140 sf_setbuff(pcap_t *p, int dim _U_) in sf_setbuff() 148 sf_setmode(pcap_t *p, int mode _U_) in sf_setmode() 156 sf_setmintocopy(pcap_t *p, int size _U_) in sf_setmintocopy() 164 sf_getevent(pcap_t *pcap) in sf_getevent() [all …]
|
H A D | pcap.c | 339 pcap_set_not_initialized_message(pcap_t *pcap) in pcap_set_not_initialized_message() 353 pcap_read_not_initialized(pcap_t *pcap, int cnt _U_, pcap_handler callback _U_, in pcap_read_not_initialized() 362 pcap_inject_not_initialized(pcap_t *pcap, const void * buf _U_, int size _U_) in pcap_inject_not_initialized() 370 pcap_setfilter_not_initialized(pcap_t *pcap, struct bpf_program *fp _U_) in pcap_setfilter_not_initialized() 378 pcap_setdirection_not_initialized(pcap_t *pcap, pcap_direction_t d _U_) in pcap_setdirection_not_initialized() 386 pcap_set_datalink_not_initialized(pcap_t *pcap, int dlt _U_) in pcap_set_datalink_not_initialized() 394 pcap_getnonblock_not_initialized(pcap_t *pcap) in pcap_getnonblock_not_initialized() 402 pcap_stats_not_initialized(pcap_t *pcap, struct pcap_stat *ps _U_) in pcap_stats_not_initialized() 411 pcap_stats_ex_not_initialized(pcap_t *pcap, int *pcap_stat_size _U_) in pcap_stats_ex_not_initialized() 418 pcap_setbuff_not_initialized(pcap_t *pcap, int dim _U_) in pcap_setbuff_not_initialized() [all …]
|
H A D | pcap-septel.c | 32 static int septel_stats(pcap_t *p, struct pcap_stat *ps); 33 static int septel_getnonblock(pcap_t *p); 34 static int septel_setnonblock(pcap_t *p, int nonblock); 48 static int septel_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) { in septel_read() 170 septel_inject(pcap_t *handle, const void *buf _U_, int size _U_) in septel_inject() 184 static pcap_t *septel_activate(pcap_t* handle) { in septel_activate() 217 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours) { in septel_create() 219 pcap_t *p; in septel_create() 251 static int septel_stats(pcap_t *p, struct pcap_stat *ps) { in septel_stats() 281 septel_getnonblock(pcap_t *p) in septel_getnonblock() [all …]
|
H A D | pcap-tc.c | 120 static int TcSetDatalink(pcap_t *p, int dlt); 121 static int TcGetNonBlock(pcap_t *p); 122 static int TcSetNonBlock(pcap_t *p, int nonblock); 123 static void TcCleanup(pcap_t *p); 124 static int TcInject(pcap_t *p, const void *buf, int size); 125 static int TcRead(pcap_t *p, int cnt, pcap_handler callback, u_char *user); 126 static int TcStats(pcap_t *p, struct pcap_stat *ps); 128 static struct pcap_stat *TcStatsEx(pcap_t *p, int *pcap_stat_size); 129 static int TcSetBuff(pcap_t *p, int dim); 130 static int TcSetMode(pcap_t *p, int mode); [all …]
|
H A D | pcap-airpcap.c | 249 airpcap_setfilter(pcap_t *p, struct bpf_program *fp) in airpcap_setfilter() 302 airpcap_set_datalink(pcap_t *p, int dlt) in airpcap_set_datalink() 336 airpcap_getnonblock(pcap_t *p) in airpcap_getnonblock() 344 airpcap_setnonblock(pcap_t *p, int nonblock) in airpcap_setnonblock() 372 airpcap_stats(pcap_t *p, struct pcap_stat *ps) in airpcap_stats() 416 airpcap_stats_ex(pcap_t *p, int *pcap_stat_size) in airpcap_stats_ex() 448 airpcap_setbuff(pcap_t *p, int dim) in airpcap_setbuff() 463 airpcap_setmode(pcap_t *p, int mode) in airpcap_setmode() 475 airpcap_setmintocopy(pcap_t *p, int size) in airpcap_setmintocopy() 489 airpcap_getevent(pcap_t *p) in airpcap_getevent() [all …]
|
H A D | dlpisubs.h | 25 int pcap_stats_dlpi(pcap_t *, struct pcap_stat *); 26 int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int); 27 int pcap_process_mactype(pcap_t *, u_int); 29 int pcap_conf_bufmod(pcap_t *, int); 31 int pcap_alloc_databuf(pcap_t *);
|
H A D | pcap-linux.c | 224 static int map_arphrd_to_dlt(pcap_t *, int, const char *, int); 225 static int pcap_activate_linux(pcap_t *); 226 static int setup_socket(pcap_t *, int); 227 static int setup_mmapped(pcap_t *); 228 static int pcap_can_set_rfmon_linux(pcap_t *); 229 static int pcap_inject_linux(pcap_t *, const void *, int); 230 static int pcap_stats_linux(pcap_t *, struct pcap_stat *); 231 static int pcap_setfilter_linux(pcap_t *, struct bpf_program *); 232 static int pcap_setdirection_linux(pcap_t *, pcap_direction_t); 233 static int pcap_set_datalink_linux(pcap_t *, int); [all …]
|
H A D | pcap-netmap.c | 63 pcap_netmap_stats(pcap_t *p, struct pcap_stat *ps) in pcap_netmap_stats() 77 pcap_t *p = (pcap_t *)arg; in pcap_netmap_filter() 88 pcap_netmap_dispatch(pcap_t *p, int cnt, pcap_handler cb, u_char *user) in pcap_netmap_dispatch() 117 pcap_netmap_inject(pcap_t *p, const void *buf, int size) in pcap_netmap_inject() 127 pcap_netmap_ioctl(pcap_t *p, u_long what, uint32_t *if_flags) in pcap_netmap_ioctl() 203 pcap_netmap_close(pcap_t *p) in pcap_netmap_close() 222 pcap_netmap_activate(pcap_t *p) in pcap_netmap_activate() 279 pcap_t * 282 pcap_t *p; in pcap_netmap_create()
|
H A D | pcap-bt-linux.c | 58 static int bt_activate(pcap_t *); 59 static int bt_read_linux(pcap_t *, int , pcap_handler , u_char *); 60 static int bt_inject_linux(pcap_t *, const void *, int); 61 static int bt_setdirection_linux(pcap_t *, pcap_direction_t); 62 static int bt_stats_linux(pcap_t *, struct pcap_stat *); 148 pcap_t * 154 pcap_t *p; in bt_create() 192 bt_activate(pcap_t* handle) in bt_activate() 318 bt_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_read_linux() 407 bt_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) in bt_inject_linux() [all …]
|
H A D | pcap-npf.c | 72 static int pcap_setfilter_npf(pcap_t *, struct bpf_program *); 73 static int pcap_setfilter_win32_dag(pcap_t *, struct bpf_program *); 74 static int pcap_getnonblock_npf(pcap_t *); 75 static int pcap_setnonblock_npf(pcap_t *, int); 245 pcap_stats_npf(pcap_t *p, struct pcap_stat *ps) in pcap_stats_npf() 306 pcap_stats_ex_npf(pcap_t *p, int *pcap_stat_size) in pcap_stats_ex_npf() 341 pcap_setbuff_npf(pcap_t *p, int dim) in pcap_setbuff_npf() 355 pcap_setmode_npf(pcap_t *p, int mode) in pcap_setmode_npf() 370 pcap_setmintocopy_npf(pcap_t *p, int size) in pcap_setmintocopy_npf() 383 pcap_getevent_npf(pcap_t *p) in pcap_getevent_npf() [all …]
|
H A D | pcap-usb-linux.c | 134 static int usb_activate(pcap_t *); 135 static int usb_stats_linux_bin(pcap_t *, struct pcap_stat *); 136 static int usb_read_linux_bin(pcap_t *, int , pcap_handler , u_char *); 137 static int usb_read_linux_mmap(pcap_t *, int , pcap_handler , u_char *); 138 static int usb_inject_linux(pcap_t *, const void *, int); 139 static int usb_setdirection_linux(pcap_t *, pcap_direction_t); 140 static void usb_cleanup_linux_mmap(pcap_t *); 224 usb_set_ring_size(pcap_t* handle, int header_size) in usb_set_ring_size() 286 int usb_mmap(pcap_t* handle) in usb_mmap() 417 pcap_t * [all …]
|
H A D | pcap-libdlpi.c | 45 static int dlpromiscon(pcap_t *, bpf_u_int32); 46 static int pcap_read_libdlpi(pcap_t *, int, pcap_handler, u_char *); 47 static int pcap_inject_libdlpi(pcap_t *, const void *, int); 49 static void pcap_cleanup_libdlpi(pcap_t *); 94 pcap_activate_libdlpi(pcap_t *p) in pcap_activate_libdlpi() 266 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon() 398 pcap_read_libdlpi(pcap_t *p, int count, pcap_handler callback, u_char *user) in pcap_read_libdlpi() 450 pcap_inject_libdlpi(pcap_t *p, const void *buf, int size) in pcap_inject_libdlpi() 473 pcap_cleanup_libdlpi(pcap_t *p) in pcap_cleanup_libdlpi() 495 pcap_t * [all …]
|
H A D | pcap-dbus.c | 52 dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in dbus_read() 104 dbus_write(pcap_t *handle, const void *buf, int size) in dbus_write() 126 dbus_stats(pcap_t *handle, struct pcap_stat *stats) in dbus_stats() 137 dbus_cleanup(pcap_t *handle) in dbus_cleanup() 153 dbus_getnonblock(pcap_t *p) in dbus_getnonblock() 161 dbus_setnonblock(pcap_t *p, int nonblock _U_) in dbus_setnonblock() 169 dbus_activate(pcap_t *handle) in dbus_activate() 301 pcap_t * 304 pcap_t *p; in dbus_create()
|
H A D | pcap-netfilter-linux.c | 84 static int nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t ve… 88 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() 308 netfilter_set_datalink(pcap_t *handle, int dlt) in netfilter_set_datalink() 315 netfilter_stats_linux(pcap_t *handle, struct pcap_stat *stats) in netfilter_stats_linux() 326 netfilter_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) in netfilter_inject_linux() 340 netfilter_send_config_msg(const pcap_t *handle, uint16_t msg_type, int ack, u_int8_t family, u_int1… in netfilter_send_config_msg() 428 nflog_send_config_msg(const pcap_t *handle, uint8_t family, u_int16_t group_id, const struct my_nfa… in nflog_send_config_msg() 434 nflog_send_config_cmd(const pcap_t *handle, uint16_t group_id, u_int8_t cmd, u_int8_t family) in nflog_send_config_cmd() 449 nflog_send_config_mode(const pcap_t *handle, uint16_t group_id, u_int8_t copy_mode, u_int32_t copy_… in nflog_send_config_mode() 465 nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t verdict) in nfqueue_send_verdict() [all …]
|
H A D | pcap-snf.c | 42 snf_set_datalink(pcap_t *p, int dlt) in snf_set_datalink() 49 snf_pcap_stats(pcap_t *p, struct pcap_stat *ps) in snf_pcap_stats() 67 snf_platform_cleanup(pcap_t *p) in snf_platform_cleanup() 81 snf_getnonblock(pcap_t *p) in snf_getnonblock() 89 snf_setnonblock(pcap_t *p, int nonblock) in snf_setnonblock() 130 snf_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in snf_read() 210 snf_inject(pcap_t *p, const void *buf _U_, int size _U_) in snf_inject() 241 snf_activate(pcap_t* p) in snf_activate() 506 pcap_t * 509 pcap_t *p; in snf_create() [all …]
|
H A D | pcap-haiku.c | 56 pcap_read_haiku(pcap_t* handle, int maxPackets _U_, pcap_handler callback, in pcap_read_haiku() 165 get_promisc(pcap_t *handle) in get_promisc() 177 set_promisc(pcap_t *handle, const int enable) in set_promisc() 191 pcap_cleanup_haiku(pcap_t *handle) in pcap_cleanup_haiku() 211 pcap_inject_haiku(pcap_t *handle, const void *buffer _U_, int size _U_) in pcap_inject_haiku() 222 pcap_stats_haiku(pcap_t *handle, struct pcap_stat *stats) in pcap_stats_haiku() 240 pcap_activate_haiku(pcap_t *handle) in pcap_activate_haiku() 420 pcap_t * 431 pcap_t* handle = PCAP_CREATE_COMMON(errorBuffer, struct pcap_haiku); in pcapint_create_interface()
|
H A D | pcap-bpf.c | 203 static int monitor_mode(pcap_t *, int); 207 static void remove_non_802_11(pcap_t *); 208 static void remove_802_11(pcap_t *); 245 static int pcap_can_set_rfmon_bpf(pcap_t *p); 246 static int pcap_activate_bpf(pcap_t *p); 247 static int pcap_setfilter_bpf(pcap_t *p, struct bpf_program *fp); 248 static int pcap_setdirection_bpf(pcap_t *, pcap_direction_t); 249 static int pcap_set_datalink_bpf(pcap_t *p, int dlt); 257 pcap_getnonblock_bpf(pcap_t *p) in pcap_getnonblock_bpf() 269 pcap_setnonblock_bpf(pcap_t *p, int nonblock) in pcap_setnonblock_bpf() [all …]
|
H A D | pcap-nit.c | 75 pcap_stats_nit(pcap_t *p, struct pcap_stat *ps) in pcap_stats_nit() 100 pcap_read_nit(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read_nit() 200 pcap_inject_nit(pcap_t *p, const void *buf, int size) in pcap_inject_nit() 217 nit_setflags(pcap_t *p) in nit_setflags() 260 pcap_activate_nit(pcap_t *p) in pcap_activate_nit() 369 pcap_t * 372 pcap_t *p; in pcapint_create_interface()
|
H A D | pcap-bt-monitor-linux.c | 93 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() 164 bt_monitor_inject(pcap_t *handle, const void *buf _U_, int size _U_) in bt_monitor_inject() 172 bt_monitor_stats(pcap_t *handle _U_, struct pcap_stat *stats) in bt_monitor_stats() 182 bt_monitor_activate(pcap_t* handle) in bt_monitor_activate() 257 pcap_t * 260 pcap_t *p; in bt_monitor_create()
|
H A D | pcap-dos.c | 99 static int pcap_activate_dos (pcap_t *p); 100 static int pcap_read_dos (pcap_t *p, int cnt, pcap_handler callback, 102 static void pcap_cleanup_dos (pcap_t *p); 103 static int pcap_stats_dos (pcap_t *p, struct pcap_stat *ps); 104 static int pcap_sendpacket_dos (pcap_t *p, const void *buf, size_t len); 105 static int pcap_setfilter_dos (pcap_t *p, struct bpf_program *fp); 153 pcap_t *pcap_create_interface (const char *device _U_, char *ebuf) in pcap_create_interface() 155 pcap_t *p; in pcap_create_interface() 169 static int pcap_activate_dos (pcap_t *pcap) in pcap_activate_dos() 234 pcap_read_one (pcap_t *p, pcap_handler callback, u_char *data) in pcap_read_one() [all …]
|
H A D | pcap-dag.c | 187 pcap_t *p; 208 static int dag_stats(pcap_t *p, struct pcap_stat *ps); 209 static int dag_set_datalink(pcap_t *p, int dlt); 210 static int dag_get_datalink(pcap_t *p); 211 static int dag_setnonblock(pcap_t *p, int nonblock); 214 delete_pcap_dag(const pcap_t *p) in delete_pcap_dag() 237 dag_platform_cleanup(pcap_t *p) in dag_platform_cleanup() 277 new_pcap_dag(pcap_t *p) in new_pcap_dag() 337 dag_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in dag_read() 723 dag_inject(pcap_t *p, const void *buf _U_, int size _U_) in dag_inject() [all …]
|
H A D | pcap-snit.c | 87 pcap_stats_snit(pcap_t *p, struct pcap_stat *ps) in pcap_stats_snit() 113 pcap_read_snit(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read_snit() 211 pcap_inject_snit(pcap_t *p, const void *buf, int size) in pcap_inject_snit() 234 nit_setflags(pcap_t *p) in nit_setflags() 283 pcap_activate_snit(pcap_t *p) in pcap_activate_snit() 463 pcap_t * 466 pcap_t *p; in pcapint_create_interface()
|
H A D | pcap-pf.c | 87 static int pcap_setfilter_pf(pcap_t *, struct bpf_program *); 98 pcap_read_pf(pcap_t *pc, int cnt, pcap_handler callback, u_char *user) in pcap_read_pf() 225 pcap_inject_pf(pcap_t *p, const void *buf, int size) in pcap_inject_pf() 239 pcap_stats_pf(pcap_t *p, struct pcap_stat *ps) in pcap_stats_pf() 294 pcap_activate_pf(pcap_t *p) in pcap_activate_pf() 535 pcap_t * 538 pcap_t *p; in pcapint_create_interface() 587 pcap_setfilter_pf(pcap_t *p, struct bpf_program *fp) in pcap_setfilter_pf()
|