Home
last modified time | relevance | path

Searched refs:errbuf (Results 1 – 25 of 63) sorted by relevance

123

/external/libpcap/
Dsavefile.c79 sf_getnonblock(pcap_t *p, char *errbuf) in sf_getnonblock() argument
89 sf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in sf_setnonblock() argument
99 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setnonblock()
107 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_stats()
116 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setbuff()
124 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmode()
132 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmintocopy()
141 strlcpy(p->errbuf, "Sending packets isn't supported on savefiles", in sf_inject()
153 snprintf(p->errbuf, sizeof(p->errbuf), in sf_setdirection()
170 char *errbuf) in pcap_open_offline_with_tstamp_precision() argument
[all …]
Dsf-pcap-ng.c232 char *errbuf) in read_bytes() argument
239 snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
245 snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
256 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf) in read_block() argument
261 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block()
278 snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
290 snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
306 snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in read_block()
317 bhdr.total_length - sizeof(bhdr), 1, errbuf) == -1) in read_block()
332 char *errbuf) in get_from_block_data() argument
[all …]
Dpcap-bpf.c98 static int bpf_load(char *errbuf);
237 pcap_getnonblock_bpf(pcap_t *p, char *errbuf) in pcap_getnonblock_bpf() argument
245 return (pcap_getnonblock_fd(p, errbuf)); in pcap_getnonblock_bpf()
249 pcap_setnonblock_bpf(pcap_t *p, int nonblock, char *errbuf) in pcap_setnonblock_bpf() argument
259 return (pcap_setnonblock_fd(p, nonblock, errbuf)); in pcap_setnonblock_bpf()
350 (void) snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
378 (void) snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
397 (void) snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
456 if (bpf_load(p->errbuf) == PCAP_ERROR) in bpf_open()
467 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in bpf_open()
[all …]
Dpcap.c168 (void)snprintf(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
275 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
277 return (dag_findalldevs(alldevsp, errbuf)); in pcap_findalldevs()
281 pcap_create(const char *source, char *errbuf) in pcap_create() argument
284 return (dag_create(source, errbuf, &is_ours)); in pcap_create()
288 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
290 return (septel_findalldevs(alldevsp, errbuf)); in pcap_findalldevs()
294 pcap_create(const char *source, char *errbuf) in pcap_create() argument
297 return (septel_create(source, errbuf, &is_ours)); in pcap_create()
301 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
[all …]
Dsf-pcap.c151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() argument
188 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
192 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
214 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
224 p = pcap_open_offline_common(errbuf, sizeof (struct pcap_sf)); in pcap_check_header()
285 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
380 snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in pcap_check_header()
415 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_packet()
421 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_packet()
504 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_packet()
[all …]
Dinet.c182 u_int flags, const char *description, char *errbuf) in add_or_find_if() argument
242 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if()
318 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if()
329 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if()
340 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if()
605 char *errbuf) in add_addr_to_iflist() argument
612 errbuf) == -1) { in add_addr_to_iflist()
645 dstaddr_size, errbuf)); in add_addr_to_iflist()
660 char *errbuf) in add_addr_to_dev() argument
666 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_dev()
[all …]
Dfad-win32.c46 char *errbuf) in pcap_add_if_win32() argument
58 if (add_or_find_if(&curdev, devlist, name, 0, desc, errbuf) == -1) { in pcap_add_if_win32()
100 errbuf); in pcap_add_if_win32()
122 pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs_interfaces() argument
155 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
171 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Cannot allocate enough memory to list the adapters."); in pcap_findalldevs_interfaces()
176 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
215 if (pcap_add_if_win32(&devlist, name, desc, errbuf) == -1) { in pcap_findalldevs_interfaces()
231 if (pcap_platform_finddevs(&devlist, errbuf) < 0) in pcap_findalldevs_interfaces()
Dpcap-pf.c130 snprintf(pc->errbuf, sizeof(pc->errbuf), "pf read: %s", in pcap_read_pf()
163 snprintf(pc->errbuf, sizeof(pc->errbuf), in pcap_read_pf()
175 snprintf(pc->errbuf, sizeof(pc->errbuf), in pcap_read_pf()
235 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_pf()
329 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "pf open: %s: %s\n\ in pcap_activate_pf()
341 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCMBIS: %s", in pcap_activate_pf()
352 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCSETW: %s", in pcap_activate_pf()
358 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCDEVP: %s", in pcap_activate_pf()
440 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
453 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCTRUNCATE: %s", in pcap_activate_pf()
[all …]
Dpcap-snf.c54 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_get_stats: %s", in snf_pcap_stats()
82 snf_getnonblock(pcap_t *p, char *errbuf) in snf_getnonblock() argument
90 snf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in snf_setnonblock() argument
167 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_read: %s", in snf_read()
200 strncpy(p->errbuf, "setfilter: No filter specified", in snf_setfilter()
201 sizeof(p->errbuf)); in snf_setfilter()
222 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in snf_inject()
233 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_inject_send: %s", in snf_inject()
238 strlcpy(p->errbuf, "Sending packets isn't supported with this snf version", in snf_inject()
254 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in snf_activate()
[all …]
Dpcap-septel.c46 static int septel_setnonblock(pcap_t *p, int nonblock, char *errbuf);
184 strlcpy(handle->errbuf, "Sending packets isn't supported on Septel cards", in septel_inject()
255 septel_findalldevs(pcap_if_t **devlistp, char *errbuf) in septel_findalldevs() argument
258 "Intel/Septel device",errbuf)); in septel_findalldevs()
271 strncpy(p->errbuf, "setfilter: No filter specified", in septel_setfilter()
272 sizeof(p->errbuf)); in septel_setfilter()
279 snprintf(p->errbuf, sizeof(p->errbuf), in septel_setfilter()
289 septel_setnonblock(pcap_t *p, int nonblock, char *errbuf) in septel_setnonblock() argument
291 fprintf(errbuf, PCAP_ERRBUF_SIZE, "Non-blocking mode not supported on Septel devices"); in septel_setnonblock()
Dpcap-win32.c143 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "PacketGetStats error: %s", pcap_win32strerror()); in pcap_stats_win32()
156 …snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: not enough memory to allocate the kernel buff… in pcap_setbuff_win32()
168 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: working mode not recognized"); in pcap_setmode_win32()
181 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: unable to set the requested mintocopy size"); in pcap_setmintocopy_win32()
220 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "read error: PacketReceivePacket failed"); in pcap_read_win32_npf()
322 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "read error: PacketReceivePacket failed"); in pcap_read_win32_dag()
471 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send error: PacketAllocatePacket failed"); in pcap_inject_win32()
477 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send error: PacketSendPacket failed"); in pcap_inject_win32()
529 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Error opening adapter: %s", pcap_win32strerror()); in pcap_activate_win32()
536 …snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Cannot determine the network type: %s", pcap_win32strerror(… in pcap_activate_win32()
[all …]
Dpcap-linux.c396 static int pcap_setnonblock_mmap(pcap_t *p, int nonblock, char *errbuf);
397 static int pcap_getnonblock_mmap(pcap_t *p, char *errbuf);
553 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
568 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
625 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
631 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
638 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
646 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
676 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
682 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
[all …]
Dpcap-dag.c119 static int dag_setnonblock(pcap_t *p, int nonblock, char *errbuf);
338 strncpy(p->errbuf, "dag_read: record too small", PCAP_ERRBUF_SIZE); in dag_read()
611 strlcpy(p->errbuf, "Sending packets isn't supported on DAG cards", in dag_inject()
645 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "device is NULL: %s", pcap_strerror(errno)); in dag_activate()
654 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't allocate string for device name: %s\n", pcap_str… in dag_activate()
660 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_parse_name: %s\n", pcap_strerror(errno)); in dag_activate()
666 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_parse_name: tx (even numbered) streams not support… in dag_activate()
673 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't allocate string for device name: %s\n", pcap_str… in dag_activate()
684 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_open %s: %s", device, pcap_strerror(errno)); in dag_activate()
691 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_attach_stream: %s\n", pcap_strerror(errno)); in dag_activate()
[all …]
Dpcap-dlpi.c227 strlcpy(p->errbuf, pcap_strerror(errno), in pcap_read_dlpi()
228 sizeof(p->errbuf)); in pcap_read_dlpi()
251 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_dlpi()
257 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_dlpi()
263 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_dlpi()
296 strlcpy(p->errbuf, "send: Not supported on this version of this OS", in pcap_inject_dlpi()
374 cp = split_dname(dname, &ppa, p->errbuf);
398 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
422 ppa = get_dlpi_ppa(p->fd, dname, ppa, p->errbuf);
444 cp = split_dname(dname, &ppa, p->errbuf);
[all …]
Dfad-glifc.c78 pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs_interfaces() argument
100 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
110 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
123 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
136 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
152 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
213 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
236 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
264 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
299 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
[all …]
Dpcap-snit.c133 snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s", in pcap_read_snit()
226 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_snit()
250 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSCHUNK: %s", in nit_setflags()
263 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSTIME: %s", in nit_setflags()
275 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSFLAGS: %s", in nit_setflags()
323 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: %s", dev, in pcap_activate_snit()
330 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "I_SRDOPT: %s", in pcap_activate_snit()
335 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "push nbuf: %s", in pcap_activate_snit()
345 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSCHUNK: %s", in pcap_activate_snit()
357 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCBIND: %s: %s", in pcap_activate_snit()
[all …]
Dpcap-snoop.c98 snprintf(p->errbuf, sizeof(p->errbuf), in pcap_read_snoop()
153 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_snoop()
170 snprintf(p->errbuf, sizeof(p->errbuf), in pcap_stats_snoop()
215 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snoop socket: %s", in pcap_activate_snoop()
224 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snoop bind: %s", in pcap_activate_snoop()
230 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCADDSNOOP: %s", in pcap_activate_snoop()
306 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
328 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCGIFMTU: %s", in pcap_activate_snoop()
362 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNOOPLEN: %s", in pcap_activate_snoop()
368 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNOOPING: %s", in pcap_activate_snoop()
[all …]
Dpcap-can-linux.c83 can_findalldevs(pcap_if_t **devlistp, char *errbuf) in can_findalldevs() argument
167 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't create raw socket %d:%s", in can_activate()
177 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in can_activate()
189 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't allocate dump buffer: %s", in can_activate()
200 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't attach to device %d %d:%s", in can_activate()
248 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't receive packet %d:%s", in can_read_linux()
262 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't get time of day %d:%s", in can_read_linux()
277 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "inject not supported on " in can_inject_linux()
308 snprintf(p->errbuf, sizeof(p->errbuf), in can_setdirection_linux()
Dfad-gifc.c135 pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs_interfaces() argument
157 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
173 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
184 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
247 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
271 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
302 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
341 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
397 errbuf) < 0) { in pcap_findalldevs_interfaces()
Dpcap-libdlpi.c119 p->errbuf); in pcap_activate_libdlpi()
136 pcap_libdlpi_err(p->opt.source, "dlpi_bind", retv, p->errbuf); in pcap_activate_libdlpi()
190 pcap_libdlpi_err(p->opt.source, "dlpi_info", retv, p->errbuf); in pcap_activate_libdlpi()
212 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "FLUSHR: %s", in pcap_activate_libdlpi()
262 retv, p->errbuf); in dlpromiscon()
274 pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) in pcap_platform_finddevs() argument
287 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_platform_finddevs()
295 if (pcap_add_if(alldevsp, entry->linkname, 0, NULL, errbuf) < 0) in pcap_platform_finddevs()
355 "dlpi_recv", retv, p->errbuf); in pcap_read_libdlpi()
374 p->errbuf); in pcap_inject_libdlpi()
[all …]
Dpcap-nit.c117 snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s", in pcap_read_nit()
171 snprintf(p->errbuf, sizeof(p->errbuf), in pcap_read_nit()
209 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_nit()
252 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNIT: %s", in nit_setflags()
283 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_nit()
291 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_nit()
306 strlcpy(p->errbuf, pcap_strerror(errno), PCAP_ERRBUF_SIZE); in pcap_activate_nit()
364 pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) in pcap_platform_finddevs() argument
Dpcap-sita.c255 int acn_parse_hosts_file(char *errbuf) { /* returns: -1 = error, 0 = OK */
265 …snprintf(errbuf, PCAP_ERRBUF_SIZE, "Cannot open '/etc/hosts' for reading."); /* return the nohosts…
288 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Invalid ACN name in '/etc/hosts'."); /* warn the user */
292 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
302 if (*errbuf) return -1;
560 static int process_client_data (char *errbuf) { /* returns: -1 = error, 0 = OK */
580 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
589 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
600 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
620 snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno));
[all …]
Dfad-sita.c38 int pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf) { in pcap_findalldevs_interfaces() argument
43 strcpy(errbuf, ""); in pcap_findalldevs_interfaces()
44 if (acn_parse_hosts_file(errbuf)) /* scan the hosts file for potential IOPs */ in pcap_findalldevs_interfaces()
50 if (acn_findalldevs(errbuf)) /* then ask the IOPs for their monitorable devices */ in pcap_findalldevs_interfaces()
/external/libpcap/tests/
Dfindalldevstest.c25 char errbuf[PCAP_ERRBUF_SIZE+1]; in main() local
26 if (pcap_findalldevs(&alldevs, errbuf) == -1) in main()
28 fprintf(stderr,"Error in pcap_findalldevs: %s\n",errbuf); in main()
37 if ( (s = pcap_lookupdev(errbuf)) == NULL) in main()
39 fprintf(stderr,"Error in pcap_lookupdev: %s\n",errbuf); in main()
47 if (pcap_lookupnet(s, &net, &mask, errbuf) < 0) in main()
49 fprintf(stderr,"Error in pcap_lookupnet: %s\n",errbuf); in main()
/external/libselinux/src/
Dlabel_support.c29 static inline int read_spec_entry(char **entry, char **ptr, int *len, const char **errbuf) in read_spec_entry() argument
43 *errbuf = "Non-ASCII characters found"; in read_spec_entry()
70 int hidden read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...) in read_spec_entries() argument
76 *errbuf = NULL; in read_spec_entries()
107 rc = read_spec_entry(spec_entry, &buf_p, &entry_len, errbuf); in read_spec_entries()

123