Home
last modified time | relevance | path

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

1234

/external/libpcap/
Dsockutils.c125 void sock_geterror(const char *caller, char *errbuf, int errbuflen) in sock_geterror() argument
132 if (errbuf == NULL) in sock_geterror()
145 pcap_snprintf(errbuf, errbuflen, "%sUnable to get the exact error message", caller); in sock_geterror()
147 pcap_snprintf(errbuf, errbuflen, "Unable to get the exact error message"); in sock_geterror()
153 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, code); in sock_geterror()
155 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, code); in sock_geterror()
160 if (errbuf == NULL) in sock_geterror()
166 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errno); in sock_geterror()
168 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errno); in sock_geterror()
188 int sock_init(char *errbuf, int errbuflen) in sock_init() argument
[all …]
Dpcap-new.c87 int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) in pcap_findalldevs_ex() argument
110 …pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly… in pcap_findalldevs_ex()
123 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
128 if (pcap_parsesrcstr(source, &type, host, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
135 if (pcap_findalldevs(alldevs, errbuf) == -1) in pcap_findalldevs_ex()
140 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_ex()
152 if (pcap_createsrcstr(tmpstring, PCAP_SRC_IFLOCAL, NULL, NULL, dev->name, errbuf) == -1) in pcap_findalldevs_ex()
162 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc() failed: %s", pcap_strerror(errno)); in pcap_findalldevs_ex()
181 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc() failed: %s", pcap_strerror(errno)); in pcap_findalldevs_ex()
204 if (pcap_parsesrcstr(source, &type, host, port, name, errbuf) == -1) in pcap_findalldevs_ex()
[all …]
Dsavefile.c95 sf_getnonblock(pcap_t *p, char *errbuf) in sf_getnonblock() argument
105 sf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in sf_setnonblock() argument
115 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setnonblock()
123 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_stats()
132 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_stats_ex()
140 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setbuff()
148 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmode()
156 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmintocopy()
164 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in sf_getevent()
173 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_oid_get_request()
[all …]
Dpcap-rpcap.c89 static int rpcap_checkver(SOCKET sock, struct rpcap_header *header, char *errbuf);
137 …deseraddr(struct sockaddr_storage *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf) in rpcap_deseraddr() argument
151 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc() failed: %s", pcap_strerror(errno)); in rpcap_deseraddr()
170 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc() failed: %s", pcap_strerror(errno)); in rpcap_deseraddr()
240 sock_geterror("select(): ", p->errbuf, PCAP_ERRBUF_SIZE); in pcap_read_nocb_remote()
264 …if (sock_recv(md->rmt_sockdata, netbuf, RPCAP_NETBUF_SIZE, SOCK_RECEIVEALL_NO, p->errbuf, PCAP_ERR… in pcap_read_nocb_remote()
269 …t_sockdata, netbuf, sizeof(struct rpcap_header), SOCK_RECEIVEALL_YES, p->errbuf, PCAP_ERRBUF_SIZE)… in pcap_read_nocb_remote()
274 retval = rpcap_checkmsg(p->errbuf, md->rmt_sockdata, header, RPCAP_MSG_PACKET, 0); in pcap_read_nocb_remote()
299 p->errbuf, PCAP_ERRBUF_SIZE); in pcap_read_nocb_remote()
350 p->errbuf, PCAP_ERRBUF_SIZE); in pcap_read_nocb_remote()
[all …]
Dsf-pcap-ng.c236 char *errbuf) in read_bytes() argument
243 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
249 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
260 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf) in read_block() argument
267 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block()
284 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
296 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
314 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in read_block()
327 if (read_bytes(fp, bdata, data_remaining, 1, errbuf) == -1) in read_block()
341 char *errbuf) in get_from_block_data() argument
[all …]
Dpcap-win32.c166 char errbuf[PCAP_ERRBUF_SIZE+1]; in pcap_stats_win32() local
182 pcap_win32_err_to_str(GetLastError(), errbuf); in pcap_stats_win32()
183 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_stats_win32()
184 "PacketGetStats error: %s", errbuf); in pcap_stats_win32()
228 char errbuf[PCAP_ERRBUF_SIZE+1]; in pcap_stats_ex_win32() local
240 pcap_win32_err_to_str(GetLastError(), errbuf); in pcap_stats_ex_win32()
241 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_stats_ex_win32()
242 "PacketGetStatsEx error: %s", errbuf); in pcap_stats_ex_win32()
260 …pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: not enough memory to allocate the kernel… in pcap_setbuff_win32()
272 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: working mode not recognized"); in pcap_setmode_win32()
[all …]
Dpcap-bpf.c107 static int bpf_load(char *errbuf);
255 pcap_getnonblock_bpf(pcap_t *p, char *errbuf) in pcap_getnonblock_bpf() argument
263 return (pcap_getnonblock_fd(p, errbuf)); in pcap_getnonblock_bpf()
267 pcap_setnonblock_bpf(pcap_t *p, int nonblock, char *errbuf) in pcap_setnonblock_bpf() argument
277 return (pcap_setnonblock_fd(p, nonblock, errbuf)); in pcap_setnonblock_bpf()
368 (void) pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
396 (void) pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
415 (void) pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
474 bpf_open(char *errbuf) in bpf_open() argument
490 if (bpf_load(errbuf) == PCAP_ERROR) in bpf_open()
[all …]
Dsockutils.h206 int sock_init(char *errbuf, int errbuflen);
209 void sock_geterror(const char *caller, char *errbuf, int errbufsize);
212 char *errbuf, int errbuflen);
214 char *errbuf, int errbuflen);
215 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen);
216 int sock_close(SOCKET sock, char *errbuf, int errbuflen);
218 int sock_send(SOCKET socket, const char *buffer, int size, char *errbuf, int errbuflen);
219 …er, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen);
220 int sock_discard(SOCKET socket, int size, char *errbuf, int errbuflen);
221 …tlist(char *hostlist, const char *sep, struct sockaddr_storage *from, char *errbuf, int errbuflen);
[all …]
Dsf-pcap.c151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() argument
188 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
192 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
214 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
228 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
236 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
247 p = pcap_open_offline_common(errbuf, sizeof (struct pcap_sf)); in pcap_check_header()
308 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
403 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in pcap_check_header()
438 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_packet()
[all …]
Dpcap.c111 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
121 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
129 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_getevent_not_initialized()
137 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_sendqueue_transmit_not_initialized()
145 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_get_airpcap_handle_not_initialized()
193 (void)pcap_snprintf(p->errbuf, sizeof(p->errbuf), in pcap_list_tstamp_types()
339 pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) in pcap_findalldevs() argument
347 if (pcap_platform_finddevs(alldevsp, errbuf) == -1) in pcap_findalldevs()
355 if (capture_source_types[i].findalldevs_op(alldevsp, errbuf) == -1) { in pcap_findalldevs()
372 pcap_create(const char *device, char *errbuf) in pcap_create() argument
[all …]
Dinet.c82 pcap_lookupdev(errbuf) in pcap_lookupdev() argument
83 register char *errbuf; in pcap_lookupdev()
93 if (pcap_findalldevs(&alldevs, errbuf) == -1)
108 (void)strlcpy(errbuf, "no suitable device found",
124 pcap_lookupnet(device, netp, maskp, errbuf) in pcap_lookupnet() argument
127 register char *errbuf;
161 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "socket: %s",
173 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
176 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
192 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
[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 pcap_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()
305 pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf) in pcap_platform_finddevs() argument
[all …]
Dpcap-snf.c54 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_get_stats: %s", in snf_pcap_stats()
79 snf_getnonblock(pcap_t *p, char *errbuf) in snf_getnonblock() argument
87 snf_setnonblock(pcap_t *p, int nonblock, char *errbuf) in snf_setnonblock() argument
164 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_read: %s", in snf_read()
197 strncpy(p->errbuf, "setfilter: No filter specified", in snf_setfilter()
198 sizeof(p->errbuf)); in snf_setfilter()
219 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in snf_inject()
230 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snf_inject_send: %s", in snf_inject()
235 strlcpy(p->errbuf, "Sending packets isn't supported with this snf version", in snf_inject()
251 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in snf_activate()
[all …]
Dpcap-dlpi.c230 strlcpy(p->errbuf, pcap_strerror(errno), in pcap_read_dlpi()
231 sizeof(p->errbuf)); in pcap_read_dlpi()
254 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_dlpi()
260 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_dlpi()
266 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_dlpi()
299 strlcpy(p->errbuf, "send: Not supported on this version of this OS", in pcap_inject_dlpi()
337 open_dlpi_device(const char *name, int *ppa, char *errbuf) in open_dlpi_device() argument
361 cp = split_dname(dname, ppa, errbuf); in open_dlpi_device()
383 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in open_dlpi_device()
392 *ppa = get_dlpi_ppa(fd, dname, *ppa, errbuf); in open_dlpi_device()
[all …]
Dpcap-pf.c130 pcap_snprintf(pc->errbuf, sizeof(pc->errbuf), "pf read: %s", in pcap_read_pf()
163 pcap_snprintf(pc->errbuf, sizeof(pc->errbuf), in pcap_read_pf()
175 pcap_snprintf(pc->errbuf, sizeof(pc->errbuf), in pcap_read_pf()
235 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_pf()
332 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "pf open: %s: %s\n\ in pcap_activate_pf()
344 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCMBIS: %s", in pcap_activate_pf()
355 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCSETW: %s", in pcap_activate_pf()
361 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCDEVP: %s", in pcap_activate_pf()
443 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
456 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "EIOCTRUNCATE: %s", in pcap_activate_pf()
[all …]
Dpcap-linux.c407 static int pcap_setnonblock_mmap(pcap_t *p, int nonblock, char *errbuf);
408 static int pcap_getnonblock_mmap(pcap_t *p, char *errbuf);
563 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
578 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
635 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
641 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
648 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
656 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
691 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
697 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
[all …]
Dpcap-dag.c212 static int dag_setnonblock(pcap_t *p, int nonblock, char *errbuf);
429 strncpy(p->errbuf, "dag_read: record too small", PCAP_ERRBUF_SIZE); in dag_read()
702 strlcpy(p->errbuf, "Sending packets isn't supported on DAG cards", in dag_inject()
736 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "device is NULL: %s", pcap_strerror(errno)); in dag_activate()
745 …pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't allocate string for device name: %s", pcap_… in dag_activate()
751 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_parse_name: %s", pcap_strerror(errno)); in dag_activate()
757 …pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_parse_name: tx (even numbered) streams not su… in dag_activate()
764 …pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't allocate string for device name: %s", pcap_… in dag_activate()
775 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_open %s: %s", device, pcap_strerror(errno)); in dag_activate()
782 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dag_attach_stream: %s", pcap_strerror(errno)); in dag_activate()
[all …]
Dpcap-snoop.c98 pcap_snprintf(p->errbuf, sizeof(p->errbuf), in pcap_read_snoop()
153 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_snoop()
170 pcap_snprintf(p->errbuf, sizeof(p->errbuf), in pcap_stats_snoop()
215 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snoop socket: %s", in pcap_activate_snoop()
231 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "snoop bind: %s", in pcap_activate_snoop()
237 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCADDSNOOP: %s", in pcap_activate_snoop()
313 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
335 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCGIFMTU: %s", in pcap_activate_snoop()
369 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNOOPLEN: %s", in pcap_activate_snoop()
375 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "SIOCSNOOPING: %s", in pcap_activate_snoop()
[all …]
Dpcap-snit.c133 pcap_snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s", in pcap_read_snit()
226 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s", in pcap_inject_snit()
250 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSCHUNK: %s", in nit_setflags()
263 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSTIME: %s", in nit_setflags()
275 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSFLAGS: %s", in nit_setflags()
323 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: %s", dev, in pcap_activate_snit()
330 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "I_SRDOPT: %s", in pcap_activate_snit()
335 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "push nbuf: %s", in pcap_activate_snit()
345 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCSCHUNK: %s", in pcap_activate_snit()
362 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "NIOCBIND: %s: %s", in pcap_activate_snit()
[all …]
Dpcap-tc.c123 static int TcGetNonBlock(pcap_t *p, char *errbuf);
124 static int TcSetNonBlock(pcap_t *p, int nonblock, char *errbuf);
436 TcFindAllDevs(pcap_if_t **alldevsp, char *errbuf) in TcFindAllDevs() argument
568 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Error allocating memory"); in TcActivate()
592 …pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Error opening TurboCap adapter: %s", g_TcFunctions.Sta… in TcActivate()
624 …pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,"Error enabling reception on a TurboCap instance: %s", g… in TcActivate()
663 …pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE,"Error setting the read timeout a TurboCap instance: %s"… in TcActivate()
777 static int TcGetNonBlock(pcap_t *p, char *errbuf) in TcGetNonBlock() argument
779 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in TcGetNonBlock()
781 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in TcGetNonBlock()
[all …]
Dremote-ext.h419 …t char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf);
420 …srcstr(char *source, int type, const char *host, const char *port, const char *name, char *errbuf);
421 … pcap_parsesrcstr(const char *source, int *type, char *host, char *port, char *name, char *errbuf);
422 …nt pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
454 …t char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, char *errbuf);
455 PCAP_API int pcap_remoteact_list(char *hostlist, char sep, int size, char *errbuf);
456 PCAP_API int pcap_remoteact_close(const char *host, char *errbuf);
Dfad-glifc.c78 pcap_findalldevs_interfaces(pcap_if_t **alldevsp, char *errbuf, in pcap_findalldevs_interfaces() argument
101 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
111 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
124 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
137 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
153 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
202 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
225 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
253 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
288 (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
[all …]
/external/tcpdump/
Dnetdissect.c47 nd_init(char *errbuf, size_t errbuf_size) in nd_init() argument
60 strlcpy(errbuf, "Attempting to initialize Winsock failed", in nd_init()
78 strlcpy(errbuf, "", errbuf_size); in nd_init()
121 nd_load_smi_module(const char *module, char *errbuf, size_t errbuf_size) in nd_load_smi_module() argument
125 snprintf(errbuf, errbuf_size, "could not load MIB module %s", in nd_load_smi_module()
132 snprintf(errbuf, errbuf_size, "MIB module %s not loaded: no libsmi support", in nd_load_smi_module()
/external/python/cpython2/Python/
Ddynload_aix.c111 char *message[1024], errbuf[1024]; in aix_loaderror() local
133 #define ERRBUF_APPEND(s) strncat(errbuf, s, sizeof(errbuf)-strlen(errbuf)-1) in aix_loaderror()
135 PyOS_snprintf(errbuf, sizeof(errbuf), "from module %.200s ", pathname); in aix_loaderror()
151 errbuf[strlen(errbuf)-1] = '\0'; /* trim off last newline */ in aix_loaderror()
152 PyErr_SetString(PyExc_ImportError, errbuf); in aix_loaderror()
/external/python/cpython3/Python/
Ddynload_aix.c106 char *message[1024], errbuf[1024]; in aix_loaderror() local
129 #define ERRBUF_APPEND(s) strncat(errbuf, s, sizeof(errbuf)-strlen(errbuf)-1) in aix_loaderror()
131 PyOS_snprintf(errbuf, sizeof(errbuf), "from module %.200s ", pathname); in aix_loaderror()
147 errbuf[strlen(errbuf)-1] = '\0'; /* trim off last newline */ in aix_loaderror()
149 errbuf_ob = PyUnicode_FromString(errbuf); in aix_loaderror()

1234