Home
last modified time | relevance | path

Searched refs:pcap_t (Results 1 – 25 of 61) sorted by relevance

123

/external/libpcap/pcap/
Dpcap.h81 typedef struct pcap pcap_t; typedef
277 pcap_t *pcap_create(const char *, char *);
278 int pcap_set_snaplen(pcap_t *, int);
279 int pcap_set_promisc(pcap_t *, int);
280 int pcap_can_set_rfmon(pcap_t *);
281 int pcap_set_rfmon(pcap_t *, int);
282 int pcap_set_timeout(pcap_t *, int);
283 int pcap_set_tstamp_type(pcap_t *, int);
284 int pcap_set_immediate_mode(pcap_t *, int);
285 int pcap_set_buffer_size(pcap_t *, int);
[all …]
/external/libpcap/
Dpcap1.h71 typedef struct pcap pcap_t; typedef
221 pcap_t *pcap_open_live(const char *, int, int, int, char *);
222 pcap_t *pcap_open_dead(int, int);
223 pcap_t *pcap_open_offline(const char *, char *);
224 void pcap_close(pcap_t *);
225 int pcap_loop(pcap_t *, int, pcap_handler, u_char *);
226 int pcap_dispatch(pcap_t *, int, pcap_handler, u_char *);
228 pcap_next(pcap_t *, struct pcap_pkthdr *);
229 int pcap_next_ex(pcap_t *, struct pcap_pkthdr **, const u_char **);
230 void pcap_breakloop(pcap_t *);
[all …]
Dpcap-int.h98 typedef int (*activate_op_t)(pcap_t *);
99 typedef int (*can_set_rfmon_op_t)(pcap_t *);
100 typedef int (*read_op_t)(pcap_t *, int cnt, pcap_handler, u_char *);
101 typedef int (*inject_op_t)(pcap_t *, const void *, size_t);
102 typedef int (*setfilter_op_t)(pcap_t *, struct bpf_program *);
103 typedef int (*setdirection_op_t)(pcap_t *, pcap_direction_t);
104 typedef int (*set_datalink_op_t)(pcap_t *, int);
105 typedef int (*getnonblock_op_t)(pcap_t *, char *);
106 typedef int (*setnonblock_op_t)(pcap_t *, int, char *);
107 typedef int (*stats_op_t)(pcap_t *, struct pcap_stat *);
[all …]
Dpcap.c113 pcap_not_initialized(pcap_t *pcap _U_) in pcap_not_initialized()
121 pcap_no_adapter(pcap_t *pcap _U_) in pcap_no_adapter()
132 pcap_can_set_rfmon(pcap_t *p) in pcap_can_set_rfmon()
141 pcap_cant_set_rfmon(pcap_t *p _U_) in pcap_cant_set_rfmon()
158 pcap_list_tstamp_types(pcap_t *p, int **tstamp_typesp) in pcap_list_tstamp_types()
211 pcap_next(pcap_t *p, struct pcap_pkthdr *h) in pcap_next()
225 pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, in pcap_next_ex()
281 pcap_t *
293 pcap_t *
305 pcap_t *
[all …]
Dsavefile.c84 sf_getnonblock(pcap_t *p, char *errbuf) in sf_getnonblock()
94 sf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in sf_setnonblock()
110 sf_stats(pcap_t *p, struct pcap_stat *ps) in sf_stats()
119 sf_setbuff(pcap_t *p, int dim) in sf_setbuff()
127 sf_setmode(pcap_t *p, int mode) in sf_setmode()
135 sf_setmintocopy(pcap_t *p, int size) in sf_setmintocopy()
144 sf_inject(pcap_t *p, const void *buf _U_, size_t size _U_) in sf_inject()
156 sf_setdirection(pcap_t *p, pcap_direction_t d) in sf_setdirection()
164 sf_cleanup(pcap_t *p) in sf_cleanup()
173 pcap_t *
[all …]
Dpcap-septel.c49 static int septel_setfilter(pcap_t *p, struct bpf_program *fp);
50 static int septel_stats(pcap_t *p, struct pcap_stat *ps);
51 static int septel_setnonblock(pcap_t *p, int nonblock, char *errbuf);
65 static int septel_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) { in septel_read()
187 septel_inject(pcap_t *handle, const void *buf _U_, size_t size _U_) in septel_inject()
201 static pcap_t *septel_activate(pcap_t* handle) { in septel_activate()
223 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours) { in septel_create()
225 pcap_t *p; in septel_create()
248 static int septel_stats(pcap_t *p, struct pcap_stat *ps) { in septel_stats()
277 static int septel_setfilter(pcap_t *p, struct bpf_program *fp) { in septel_setfilter()
[all …]
Dpcap-can-linux.c68 static int can_activate(pcap_t *);
69 static int can_read_linux(pcap_t *, int , pcap_handler , u_char *);
70 static int can_inject_linux(pcap_t *, const void *, size_t);
71 static int can_setfilter_linux(pcap_t *, struct bpf_program *);
72 static int can_setdirection_linux(pcap_t *, pcap_direction_t);
73 static int can_stats_linux(pcap_t *, struct pcap_stat *);
94 pcap_t *
100 pcap_t* p; in can_create()
144 can_activate(pcap_t* handle) in can_activate()
220 can_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in can_read_linux()
[all …]
Dpcap-canusb-linux.c63 static int canusb_activate(pcap_t *);
64 static int canusb_read_linux(pcap_t *, int , pcap_handler , u_char *);
65 static int canusb_inject_linux(pcap_t *, const void *, size_t);
66 static int canusb_setfilter_linux(pcap_t *, struct bpf_program *);
67 static int canusb_setdirection_linux(pcap_t *, pcap_direction_t);
68 static int canusb_stats_linux(pcap_t *, struct pcap_stat *);
205 pcap_t *
211 pcap_t* p; in canusb_create()
318 static void canusb_close(pcap_t* handle) in canusb_close()
339 static int canusb_activate(pcap_t* handle) in canusb_activate()
[all …]
Ddlpisubs.h29 int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
30 int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
31 int pcap_process_mactype(pcap_t *, u_int);
33 int pcap_conf_bufmod(pcap_t *, int);
35 int pcap_alloc_databuf(pcap_t *);
Dpcap-win32.c60 static int pcap_setfilter_win32_npf(pcap_t *, struct bpf_program *);
61 static int pcap_setfilter_win32_dag(pcap_t *, struct bpf_program *);
62 static int pcap_getnonblock_win32(pcap_t *, char *);
63 static int pcap_setnonblock_win32(pcap_t *, int, char *);
131 pcap_stats_win32(pcap_t *p, struct pcap_stat *ps) in pcap_stats_win32()
144 pcap_setbuff_win32(pcap_t *p, int dim) in pcap_setbuff_win32()
156 pcap_setmode_win32(pcap_t *p, int mode) in pcap_setmode_win32()
169 pcap_setmintocopy_win32(pcap_t *p, int size) in pcap_setmintocopy_win32()
181 pcap_getadapter_win32(pcap_t *p) in pcap_getadapter_win32()
187 pcap_read_win32_npf(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read_win32_npf()
[all …]
Dpcap-snf.c34 snf_set_datalink(pcap_t *p, int dlt) in snf_set_datalink()
41 snf_pcap_stats(pcap_t *p, struct pcap_stat *ps) in snf_pcap_stats()
58 snf_platform_cleanup(pcap_t *p) in snf_platform_cleanup()
71 snf_getnonblock(pcap_t *p, char *errbuf) in snf_getnonblock()
79 snf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in snf_setnonblock()
110 snf_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in snf_read()
165 snf_setfilter(pcap_t *p, struct bpf_program *fp) in snf_setfilter()
184 snf_inject(pcap_t *p, const void *buf _U_, size_t size _U_) in snf_inject()
192 snf_activate(pcap_t* p) in snf_activate()
271 pcap_t *
[all …]
Dpcap-bt-linux.c67 static int bt_activate(pcap_t *);
68 static int bt_read_linux(pcap_t *, int , pcap_handler , u_char *);
69 static int bt_inject_linux(pcap_t *, const void *, size_t);
70 static int bt_setdirection_linux(pcap_t *, pcap_direction_t);
71 static int bt_stats_linux(pcap_t *, struct pcap_stat *);
143 pcap_t *
149 pcap_t *p; in bt_create()
187 bt_activate(pcap_t* handle) in bt_activate()
304 bt_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in bt_read_linux()
373 bt_inject_linux(pcap_t *handle, const void *buf, size_t size) in bt_inject_linux()
[all …]
Dpcap-libdlpi.c52 static int dlpromiscon(pcap_t *, bpf_u_int32);
53 static int pcap_read_libdlpi(pcap_t *, int, pcap_handler, u_char *);
54 static int pcap_inject_libdlpi(pcap_t *, const void *, size_t);
56 static void pcap_cleanup_libdlpi(pcap_t *);
101 pcap_activate_libdlpi(pcap_t *p) in pcap_activate_libdlpi()
236 dlpromiscon(pcap_t *p, bpf_u_int32 level) in dlpromiscon()
302 pcap_read_libdlpi(pcap_t *p, int count, pcap_handler callback, u_char *user) in pcap_read_libdlpi()
354 pcap_inject_libdlpi(pcap_t *p, const void *buf, size_t size) in pcap_inject_libdlpi()
377 pcap_cleanup_libdlpi(pcap_t *p) in pcap_cleanup_libdlpi()
399 pcap_t *
[all …]
Dpcap-linux.c324 static void map_arphrd_to_dlt(pcap_t *, int, int);
328 static int pcap_activate_linux(pcap_t *);
329 static int activate_old(pcap_t *);
330 static int activate_new(pcap_t *);
331 static int activate_mmap(pcap_t *, int *);
332 static int pcap_can_set_rfmon_linux(pcap_t *);
333 static int pcap_read_linux(pcap_t *, int, pcap_handler, u_char *);
334 static int pcap_read_packet(pcap_t *, pcap_handler, u_char *);
335 static int pcap_inject_linux(pcap_t *, const void *, size_t);
336 static int pcap_stats_linux(pcap_t *, struct pcap_stat *);
[all …]
Dpcap-usb-linux.c135 static int usb_activate(pcap_t *);
136 static int usb_stats_linux(pcap_t *, struct pcap_stat *);
137 static int usb_stats_linux_bin(pcap_t *, struct pcap_stat *);
138 static int usb_read_linux(pcap_t *, int , pcap_handler , u_char *);
139 static int usb_read_linux_bin(pcap_t *, int , pcap_handler , u_char *);
140 static int usb_read_linux_mmap(pcap_t *, int , pcap_handler , u_char *);
141 static int usb_inject_linux(pcap_t *, const void *, size_t);
142 static int usb_setdirection_linux(pcap_t *, pcap_direction_t);
143 static void usb_cleanup_linux_mmap(pcap_t *);
215 int usb_mmap(pcap_t* handle) in usb_mmap()
[all …]
Dpcap-netfilter-linux.c84 static int nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int32_t id, u_int32_t v…
87 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux()
213 netfilter_set_datalink(pcap_t *handle, int dlt) in netfilter_set_datalink()
220 netfilter_stats_linux(pcap_t *handle, struct pcap_stat *stats) in netfilter_stats_linux()
231 netfilter_inject_linux(pcap_t *handle, const void *buf, size_t size) in netfilter_inject_linux()
244 netfilter_send_config_msg(const pcap_t *handle, u_int16_t msg_type, int ack, u_int8_t family, u_int… in netfilter_send_config_msg()
325 nflog_send_config_msg(const pcap_t *handle, u_int8_t family, u_int16_t group_id, const struct my_nf… in nflog_send_config_msg()
331 nflog_send_config_cmd(const pcap_t *handle, u_int16_t group_id, u_int8_t cmd, u_int8_t family) in nflog_send_config_cmd()
346 nflog_send_config_mode(const pcap_t *handle, u_int16_t group_id, u_int8_t copy_mode, u_int32_t copy… in nflog_send_config_mode()
362 nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int32_t id, u_int32_t verdict) in nfqueue_send_verdict()
[all …]
Dpcap-dbus.c54 dbus_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in dbus_read()
106 dbus_write(pcap_t *handle, const void *buf, size_t size) in dbus_write()
128 dbus_stats(pcap_t *handle, struct pcap_stat *stats) in dbus_stats()
139 dbus_cleanup(pcap_t *handle) in dbus_cleanup()
149 dbus_activate(pcap_t *handle) in dbus_activate()
248 pcap_t *
251 pcap_t *p; in dbus_create()
Dpcap-dag.c105 pcap_t *p;
119 static int dag_setfilter(pcap_t *p, struct bpf_program *fp);
120 static int dag_stats(pcap_t *p, struct pcap_stat *ps);
121 static int dag_set_datalink(pcap_t *p, int dlt);
122 static int dag_get_datalink(pcap_t *p);
123 static int dag_setnonblock(pcap_t *p, int nonblock, char *errbuf);
126 delete_pcap_dag(pcap_t *p) in delete_pcap_dag()
149 dag_platform_cleanup(pcap_t *p) in dag_platform_cleanup()
189 new_pcap_dag(pcap_t *p) in new_pcap_dag()
249 dag_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in dag_read()
[all …]
Dpcap-nit.c82 pcap_stats_nit(pcap_t *p, struct pcap_stat *ps) in pcap_stats_nit()
107 pcap_read_nit(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read_nit()
204 pcap_inject_nit(pcap_t *p, const void *buf, size_t size) in pcap_inject_nit()
221 nit_setflags(pcap_t *p) in nit_setflags()
264 pcap_activate_nit(pcap_t *p) in pcap_activate_nit()
354 pcap_t *
357 pcap_t *p; in pcap_create_interface()
Dpcap-bpf.c188 static int monitor_mode(pcap_t *, int);
192 static void remove_en(pcap_t *);
193 static void remove_802_11(pcap_t *);
229 static int pcap_can_set_rfmon_bpf(pcap_t *p);
230 static int pcap_activate_bpf(pcap_t *p);
231 static int pcap_setfilter_bpf(pcap_t *p, struct bpf_program *fp);
232 static int pcap_setdirection_bpf(pcap_t *, pcap_direction_t);
233 static int pcap_set_datalink_bpf(pcap_t *p, int dlt);
241 pcap_getnonblock_bpf(pcap_t *p, char *errbuf) in pcap_getnonblock_bpf()
253 pcap_setnonblock_bpf(pcap_t *p, int nonblock, char *errbuf) in pcap_setnonblock_bpf()
[all …]
Dpcap-dos.c100 static int pcap_activate_dos (pcap_t *p);
101 static int pcap_read_dos (pcap_t *p, int cnt, pcap_handler callback,
103 static void pcap_cleanup_dos (pcap_t *p);
104 static int pcap_stats_dos (pcap_t *p, struct pcap_stat *ps);
105 static int pcap_sendpacket_dos (pcap_t *p, const void *buf, size_t len);
106 static int pcap_setfilter_dos (pcap_t *p, struct bpf_program *fp);
154 pcap_t *pcap_create_interface (const char *device, char *ebuf) in pcap_create_interface()
156 pcap_t *p; in pcap_create_interface()
170 static int pcap_activate_dos (pcap_t *pcap) in pcap_activate_dos()
221 pcap_read_one (pcap_t *p, pcap_handler callback, u_char *data) in pcap_read_one()
[all …]
Dpcap-pf.c95 static int pcap_setfilter_pf(pcap_t *, struct bpf_program *);
106 pcap_read_pf(pcap_t *pc, int cnt, pcap_handler callback, u_char *user) in pcap_read_pf()
234 pcap_inject_pf(pcap_t *p, const void *buf, size_t size) in pcap_inject_pf()
248 pcap_stats_pf(pcap_t *p, struct pcap_stat *ps) in pcap_stats_pf()
303 pcap_activate_pf(pcap_t *p) in pcap_activate_pf()
510 pcap_t *
513 pcap_t *p; in pcap_create_interface()
530 pcap_setfilter_pf(pcap_t *p, struct bpf_program *fp) in pcap_setfilter_pf()
Dpcap-snit.c95 pcap_stats_snit(pcap_t *p, struct pcap_stat *ps) in pcap_stats_snit()
121 pcap_read_snit(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read_snit()
216 pcap_inject_snit(pcap_t *p, const void *buf, size_t size) in pcap_inject_snit()
239 nit_setflags(pcap_t *p) in nit_setflags()
288 pcap_activate_snit(pcap_t *p) in pcap_activate_snit()
433 pcap_t *
436 pcap_t *p; in pcap_create_interface()
Dsf-pcap.c123 static int pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **datap);
150 pcap_t *
156 pcap_t *p; in pcap_check_header()
397 pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) in pcap_next_packet()
569 sf_write_header(pcap_t *p, FILE *fp, int linktype, int thiszone, int snaplen) in sf_write_header()
608 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) in pcap_setup_dump()
638 pcap_dump_open(pcap_t *p, const char *fname) in pcap_dump_open()
684 pcap_dump_fopen(pcap_t *p, FILE *f) in pcap_dump_fopen()
Ddlpisubs.c84 pcap_stats_dlpi(pcap_t *p, struct pcap_stat *ps) in pcap_stats_dlpi()
125 pcap_process_pkts(pcap_t *p, pcap_handler callback, u_char *user, in pcap_process_pkts()
213 pcap_process_mactype(pcap_t *p, u_int mactype) in pcap_process_mactype()
276 pcap_conf_bufmod(pcap_t *p, int snaplen) in pcap_conf_bufmod()
330 pcap_alloc_databuf(pcap_t *p) in pcap_alloc_databuf()

123