Home
last modified time | relevance | path

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

1234

/external/libpcap/
Dsockutils.c131 void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen) in sock_fmterror() argument
137 if (errbuf == NULL) in sock_fmterror()
148 pcap_snprintf(errbuf, errbuflen, "%sUnable to get the exact error message", caller); in sock_fmterror()
150 pcap_snprintf(errbuf, errbuflen, "Unable to get the exact error message"); in sock_fmterror()
155 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror()
157 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror()
162 if (errbuf == NULL) in sock_fmterror()
168 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror()
170 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror()
194 void sock_geterror(const char *caller, char *errbuf, int errbuflen) in sock_geterror() argument
[all …]
Dpcap-rpcap.c158 static int rpcap_sendauth(SOCKET sock, uint8 *ver, struct pcap_rmtauth *auth, char *errbuf);
159 static int rpcap_recv_msg_header(SOCKET sock, struct rpcap_header *header, char *errbuf);
160 …nt rpcap_check_msg_ver(SOCKET sock, uint8 expected_ver, struct rpcap_header *header, char *errbuf);
161 …_type(SOCKET sock, uint8 request_type, struct rpcap_header *header, uint16 *errcode, char *errbuf);
162 …_msg_header(SOCKET sock, uint8 ver, uint8 request_type, struct rpcap_header *header, char *errbuf);
163 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf);
165 static int rpcap_discard(SOCKET sock, uint32 len, char *errbuf);
282 …p_deseraddr(struct rpcap_sockaddr *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf) in rpcap_deseraddr() argument
297 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in rpcap_deseraddr()
327 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in rpcap_deseraddr()
[all …]
Dsavefile.c107 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setnonblock()
115 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_stats()
124 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_stats_ex()
132 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setbuff()
140 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmode()
148 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_setmintocopy()
156 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in sf_getevent()
165 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_oid_get_request()
174 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_oid_set_request()
182 strlcpy(p->errbuf, "Sending packets isn't supported on savefiles", in sf_sendqueue_transmit()
[all …]
Dpcap-new.c69 int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf) in pcap_findalldevs_ex() argument
84 …pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly… in pcap_findalldevs_ex()
97 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
103 if (pcap_parsesrcstr(source, &type, NULL, NULL, NULL, errbuf) == -1) in pcap_findalldevs_ex()
110 if (pcap_findalldevs(alldevs, errbuf) == -1) in pcap_findalldevs_ex()
115 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_ex()
127 if (pcap_createsrcstr(tmpstring, PCAP_SRC_IFLOCAL, NULL, NULL, dev->name, errbuf) == -1) in pcap_findalldevs_ex()
137 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
159 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_ex()
182 if (pcap_parsesrcstr(source, &type, NULL, NULL, name, errbuf) == -1) in pcap_findalldevs_ex()
[all …]
Dsf-pcapng.c251 char *errbuf) in read_bytes() argument
258 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
263 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_bytes()
274 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf) in read_block() argument
284 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block()
301 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
313 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in read_block()
330 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "block is larger than maximum block size %u", in read_block()
336 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in read_block()
349 if (read_bytes(fp, bdata, data_remaining, 1, errbuf) == -1) in read_block()
[all …]
Dsockutils.h196 int sock_init(char *errbuf, int errbuflen);
198 void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen);
199 void sock_geterror(const char *caller, char *errbuf, int errbufsize);
202 char *errbuf, int errbuflen);
204 char *errbuf, int errbuflen);
206 char *errbuf, int errbuflen);
207 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen);
208 int sock_close(SOCKET sock, char *errbuf, int errbuflen);
211 char *errbuf, int errbuflen);
212 …er, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen);
[all …]
Dpcap-npf.c145 char *errbuf) in oid_get_request() argument
158 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in oid_get_request()
172 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in oid_get_request()
196 char errbuf[PCAP_ERRBUF_SIZE+1]; in pcap_stats_npf() local
212 pcap_win32_err_to_str(GetLastError(), errbuf); in pcap_stats_npf()
213 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_stats_npf()
214 "PacketGetStats error: %s", errbuf); in pcap_stats_npf()
259 char errbuf[PCAP_ERRBUF_SIZE+1]; in pcap_stats_ex_npf() local
271 pcap_win32_err_to_str(GetLastError(), errbuf); in pcap_stats_ex_npf()
272 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_stats_ex_npf()
[all …]
Dpcap-bpf.c110 static int bpf_load(char *errbuf);
372 pcap_fmt_errmsg_for_errno(p->errbuf, in pcap_next_zbuf()
400 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
419 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_zbuf()
478 bpf_open(char *errbuf) in bpf_open() argument
492 if (bpf_load(errbuf) == PCAP_ERROR) in bpf_open()
511 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in bpf_open()
560 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in bpf_open()
569 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in bpf_open()
581 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in bpf_open()
[all …]
Dpcap.c194 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
199 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized()
211 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
215 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_not_initialized_ptr()
225 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_getevent_not_initialized()
229 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_getevent_not_initialized()
239 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_sendqueue_transmit_not_initialized()
243 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_sendqueue_transmit_not_initialized()
253 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_get_airpcap_handle_not_initialized()
257 (void)pcap_snprintf(pcap->errbuf, sizeof(pcap->errbuf), in pcap_get_airpcap_handle_not_initialized()
[all …]
Dsf-pcap.c138 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() argument
175 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
178 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
200 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
214 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
225 p = pcap_open_offline_common(errbuf, sizeof (struct pcap_sf)); in pcap_check_header()
297 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_check_header()
394 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in pcap_check_header()
415 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "out of memory"); in grow_buffer()
447 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_next_packet()
[all …]
Dpcap-snf.c58 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in snf_pcap_stats()
169 pcap_fmt_errmsg_for_errno(p->errbuf, in snf_read()
202 strncpy(p->errbuf, "setfilter: No filter specified", in snf_setfilter()
203 sizeof(p->errbuf)); in snf_setfilter()
224 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in snf_inject()
235 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in snf_inject()
240 strlcpy(p->errbuf, "Sending packets isn't supported with this snf version", in snf_inject()
256 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "device is NULL"); in snf_activate()
283 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in snf_activate()
293 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in snf_activate()
[all …]
Dpcap-dlpi.c241 pcap_fmt_errmsg_for_errno(p->errbuf, in pcap_read_dlpi()
242 sizeof(p->errbuf), errno, "getmsg"); in pcap_read_dlpi()
265 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_dlpi()
271 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_dlpi()
277 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_dlpi()
310 strlcpy(p->errbuf, "send: Not supported on this version of this OS", in pcap_inject_dlpi()
348 open_dlpi_device(const char *name, u_int *ppa, char *errbuf) in open_dlpi_device() argument
374 cp = split_dname(dname, &unit, errbuf); in open_dlpi_device()
396 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in open_dlpi_device()
405 status = get_dlpi_ppa(fd, dname, unit, ppa, errbuf); in open_dlpi_device()
[all …]
Dpcap-pf.c130 pcap_fmt_errmsg_for_errno(pc->errbuf, in pcap_read_pf()
131 sizeof(pc->errbuf), errno, "pf read"); 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_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_pf()
334 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
340 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
365 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
377 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
384 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_pf()
[all …]
Dpcap-snoop.c98 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_read_snoop()
153 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_snoop()
170 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_stats_snoop()
215 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
231 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
237 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
313 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
346 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
380 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
386 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snoop()
[all …]
Dpcap-snit.c133 pcap_fmt_errmsg_for_errno(p->errbuf, sizeof(p->errbuf), in pcap_read_snit()
226 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_inject_snit()
250 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in nit_setflags()
263 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in nit_setflags()
275 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in nit_setflags()
339 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snit()
346 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snit()
352 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snit()
363 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snit()
381 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_snit()
[all …]
Dfad-glifc.c78 pcap_findalldevs_interfaces(pcap_if_list_t *devlistp, char *errbuf, in pcap_findalldevs_interfaces() argument
100 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
110 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
123 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
136 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
152 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
201 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs_interfaces()
223 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_interfaces()
251 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_interfaces()
286 pcap_fmt_errmsg_for_errno(errbuf, in pcap_findalldevs_interfaces()
[all …]
Dpcap-linux.c605 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
620 pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, in get_mac80211_phydev()
676 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
682 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
689 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
697 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in nl80211_init()
732 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
738 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
770 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
798 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
[all …]
Dpcap-septel.c185 strlcpy(handle->errbuf, "Sending packets isn't supported on Septel cards", in septel_inject()
276 septel_findalldevs(pcap_if_list_t *devlistp, char *errbuf) in septel_findalldevs() argument
281 if (add_dev(devlistp,"septel",0,"Intel/Septel device",errbuf) == NULL) in septel_findalldevs()
296 strncpy(p->errbuf, "setfilter: No filter specified", in septel_setfilter()
297 sizeof(p->errbuf)); in septel_setfilter()
318 fprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Non-blocking mode not supported on Septel devices"); in septel_getnonblock()
325 fprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Non-blocking mode not supported on Septel devices"); in septel_setnonblock()
339 pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf) in pcap_platform_finddevs() argument
348 pcap_create_interface(const char *device, char *errbuf) in pcap_create_interface() argument
350 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_create_interface()
Dpcap-dag.c426 strncpy(p->errbuf, "dag_read: record too small", PCAP_ERRBUF_SIZE); in dag_read()
725 strlcpy(p->errbuf, "Sending packets isn't supported on DAG cards", in dag_inject()
754 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "device is NULL"); in dag_activate()
761 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
768 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
775 …pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "dag_parse_name: tx (even numbered) streams not support… in dag_activate()
781 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
787 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
794 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
812 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in dag_activate()
[all …]
Dpcap-libdlpi.c119 p->errbuf); in pcap_activate_libdlpi()
136 pcap_libdlpi_err(p->opt.device, "dlpi_bind", retv, p->errbuf); in pcap_activate_libdlpi()
201 pcap_libdlpi_err(p->opt.device, "dlpi_info", retv, p->errbuf); in pcap_activate_libdlpi()
223 pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_activate_libdlpi()
273 retv, p->errbuf); in dlpromiscon()
291 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_) in get_if_flags()
319 pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf) in pcap_platform_finddevs() argument
330 if (pcap_findalldevs_interfaces(devlistp, errbuf, in pcap_platform_finddevs()
346 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in pcap_platform_finddevs()
359 NULL, errbuf) == NULL) in pcap_platform_finddevs()
[all …]
/external/libpcap/rpcapd/
Drpcapd.c168 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in main() local
178 memset(errbuf, 0, sizeof(errbuf)); in main()
180 if (sock_init(errbuf, PCAP_ERRBUF_SIZE) == -1) in main()
182 SOCK_DEBUG_MESSAGE(errbuf); in main()
302 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
304 errbuf); in main()
313 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
315 errbuf); in main()
356 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
358 errbuf); in main()
[all …]
Ddaemon.c111 static int daemon_AuthUserPwd(char *username, char *password, char *errbuf);
120 …daemon_unpackapplyfilter(SOCKET sockctrl_in, struct session *session, uint32 *plenp, char *errbuf);
141 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in daemon_serviceloop() local
190 *errbuf = 0; // Initialize errbuf in daemon_serviceloop()
219 if (rpcap_senderror(pars.sockctrl_out, 0, PCAP_ERR_NETW, errmsgbuf, errbuf) == -1) in daemon_serviceloop()
220 rpcapd_log(LOGPRIO_ERROR, "Send to client failed: %s", errbuf); in daemon_serviceloop()
228 …pars.sockctrl_out, 0, PCAP_ERR_INITTIMEOUT, "The RPCAP initial timeout has expired", errbuf) == -1) in daemon_serviceloop()
229 rpcapd_log(LOGPRIO_ERROR, "Send to client failed: %s", errbuf); in daemon_serviceloop()
295 errbuf) == -1) in daemon_serviceloop()
298 rpcapd_log(LOGPRIO_ERROR, "Send to client failed: %s", errbuf); in daemon_serviceloop()
[all …]
/external/libpcap/testprogs/
Dfindalldevstest.c39 static char errbuf[ERRBUF_SIZE+1]; in win32_strerror() local
42 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, errbuf, in win32_strerror()
49 errlen = strlen(errbuf); in win32_strerror()
51 errbuf[errlen - 1] = '\0'; in win32_strerror()
52 errbuf[errlen - 2] = '\0'; in win32_strerror()
55 return errbuf; in win32_strerror()
103 char errbuf[PCAP_ERRBUF_SIZE+1]; in main() local
114 if (pcap_findalldevs_ex(argv[1], NULL, &alldevs, errbuf) == -1) in main()
129 if (pcap_findalldevs_ex(argv[1], &auth, &alldevs, errbuf) == -1) in main()
131 fprintf(stderr,"Error in pcap_findalldevs: %s\n",errbuf); in main()
[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()

1234