HomeSort by: relevance | last modified time | path
    Searched refs:PCAP_ERRBUF_SIZE (Results 1 - 25 of 69) sorted by relevancy

1 2 3

  /src/external/bsd/libpcap/dist/
rpcap-protocol.c 72 * error message cannot be longer than PCAP_ERRBUF_SIZE.
75 * PCAP_ERRBUF_SIZE) that will contain the error message (in case there
90 if (length > PCAP_ERRBUF_SIZE)
91 length = PCAP_ERRBUF_SIZE;
96 RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE))
100 RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE))
103 if (sock_send(sock, ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0)
pcap-null.c 38 (void)pcapint_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
56 (void)pcapint_strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE);
pcap-new.c 90 snprintf(errbuf, PCAP_ERRBUF_SIZE,
96 snprintf(errbuf, PCAP_ERRBUF_SIZE, "The source string is too long. Cannot handle it correctly.");
115 snprintf(errbuf, PCAP_ERRBUF_SIZE,
129 snprintf(errbuf, PCAP_ERRBUF_SIZE,
154 PCAP_ERRBUF_SIZE, errno,
172 PCAP_ERRBUF_SIZE, errno,
201 snprintf(errbuf, PCAP_ERRBUF_SIZE,
237 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error when listing files: does folder '%s' exist?", path);
246 snprintf(errbuf, PCAP_ERRBUF_SIZE,
259 snprintf(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
savefile.c 112 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
130 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
139 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
147 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
155 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
163 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
180 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
189 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
198 PCAP_ERRBUF_SIZE);
205 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
sf-pcap.c 265 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
268 snprintf(errbuf, PCAP_ERRBUF_SIZE,
289 snprintf(errbuf, PCAP_ERRBUF_SIZE,
303 snprintf(errbuf, PCAP_ERRBUF_SIZE,
314 snprintf(errbuf, PCAP_ERRBUF_SIZE,
385 snprintf(errbuf, PCAP_ERRBUF_SIZE,
488 snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory");
509 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "out of memory");
541 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
546 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-rpcap-unix.c 141 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "break-loop");
150 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: connection closed");
152 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: connection error (%s)", strerror(errno));
157 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: incorrect reply version (%.2x)", hdr[0]);
166 buflen = PCAP_ERRBUF_SIZE-1;
194 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "break-loop");
202 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: connection closed");
204 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: connection error (%s)", strerror(errno));
236 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "break-loop");
244 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "rpcap: connection closed")
    [all...]
charconv.c 39 #include <pcap/pcap.h> /* Needed for PCAP_ERRBUF_SIZE */
153 * The buffer is assumed to be PCAP_ERRBUF_SIZE bytes long; we truncate
181 snprintf(errbuf, PCAP_ERRBUF_SIZE,
203 errbuf, PCAP_ERRBUF_SIZE, NULL, NULL);
208 snprintf(errbuf, PCAP_ERRBUF_SIZE,
211 snprintf(errbuf, PCAP_ERRBUF_SIZE,
pcap-dlpi.c 262 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
268 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
274 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
308 PCAP_ERRBUF_SIZE);
358 snprintf(errbuf, PCAP_ERRBUF_SIZE,
390 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
415 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
424 snprintf(errbuf, PCAP_ERRBUF_SIZE,
433 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
455 snprintf(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-rpcap.c 63 * containing the error description can return max PCAP_ERRBUF_SIZE characters.
66 * 'PCAP_ERRBUF_SIZE+1' and to insert manually a NULL character at the end
255 * \param errbuf: a pointer to a user-allocated buffer (of size PCAP_ERRBUF_SIZE)
314 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
344 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
441 sock_geterrmsg(p->errbuf, PCAP_ERRBUF_SIZE,
463 p->bufsize, p->errbuf, PCAP_ERRBUF_SIZE);
479 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
490 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
534 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-dbus.c 74 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed");
87 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected");
122 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "dbus_message_demarshal() failed: %s", error.message);
164 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
172 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
199 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Failed to get system bus: %s", error.message);
206 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Failed to get session bus: %s", error.message);
215 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Failed to open connection to: %s: %s", addr, error.message);
221 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Failed to register bus %s: %s\n", addr, error.message);
227 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't get bus address from %s", handle->opt.device)
    [all...]
pcap-bpf.c 379 PCAP_ERRBUF_SIZE, errno, "BIOCROTZBUF");
406 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
425 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
467 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, errno,
515 snprintf(errbuf, PCAP_ERRBUF_SIZE,
521 PCAP_ERRBUF_SIZE, errno,
571 snprintf(errbuf, PCAP_ERRBUF_SIZE,
581 snprintf(errbuf, PCAP_ERRBUF_SIZE,
593 snprintf(errbuf, PCAP_ERRBUF_SIZE,
603 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-bt-linux.c 90 pcapint_fmt_errmsg_for_errno(err_str, PCAP_ERRBUF_SIZE,
98 snprintf(err_str, PCAP_ERRBUF_SIZE, "Can't allocate %zu bytes for Bluetooth device list",
116 pcapint_fmt_errmsg_for_errno(err_str, PCAP_ERRBUF_SIZE,
208 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
242 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
249 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
256 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
263 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
274 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
287 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-npf.c 215 snprintf(errbuf, PCAP_ERRBUF_SIZE,
226 pcapint_fmt_errmsg_for_win32_err(errbuf, PCAP_ERRBUF_SIZE,
265 pcapint_fmt_errmsg_for_win32_err(p->errbuf, PCAP_ERRBUF_SIZE,
322 pcapint_fmt_errmsg_for_win32_err(p->errbuf, PCAP_ERRBUF_SIZE,
348 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: not enough memory to allocate the kernel buffer");
362 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: working mode not recognized");
377 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "driver error: unable to set the requested mintocopy size");
412 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
421 pcapint_fmt_errmsg_for_win32_err(p->errbuf, PCAP_ERRBUF_SIZE,
451 pcapint_fmt_errmsg_for_win32_err(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-airpcap.c 326 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
381 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
427 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
453 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
466 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
480 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
500 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
509 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
517 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
529 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-linux.c 373 pcapint_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE,
458 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
481 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
491 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
497 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
521 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
544 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
550 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
557 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
565 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
fad-glifc.c 106 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
116 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
129 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
142 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
158 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
207 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
230 PCAP_ERRBUF_SIZE, errno,
258 PCAP_ERRBUF_SIZE, errno,
293 PCAP_ERRBUF_SIZE, errno,
pcap-snf.c 61 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
188 PCAP_ERRBUF_SIZE, err, "snf_read");
223 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
234 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
240 PCAP_ERRBUF_SIZE);
255 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "device is NULL");
282 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
292 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
315 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
357 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap.c 205 pcapint_fmt_errmsg_for_win32_err(errbuf, PCAP_ERRBUF_SIZE,
276 snprintf(errbuf, PCAP_ERRBUF_SIZE,
287 snprintf(errbuf, PCAP_ERRBUF_SIZE,
296 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Unknown options specified");
1152 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1161 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1172 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1185 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1200 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
1336 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
sf-pcapng.c 264 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
269 snprintf(errbuf, PCAP_ERRBUF_SIZE,
305 snprintf(errbuf, PCAP_ERRBUF_SIZE,
319 snprintf(errbuf, PCAP_ERRBUF_SIZE,
336 snprintf(errbuf, PCAP_ERRBUF_SIZE, "pcapng block size %u > maximum %u", bhdr.total_length,
342 snprintf(errbuf, PCAP_ERRBUF_SIZE, "out of memory");
373 snprintf(errbuf, PCAP_ERRBUF_SIZE,
398 snprintf(errbuf, PCAP_ERRBUF_SIZE,
499 snprintf(errbuf, PCAP_ERRBUF_SIZE,
508 snprintf(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
fad-gifc.c 164 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
182 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
190 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
201 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
274 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
298 PCAP_ERRBUF_SIZE, errno,
329 PCAP_ERRBUF_SIZE, errno,
368 PCAP_ERRBUF_SIZE, errno,
pcap-netfilter-linux.c 135 PCAP_ERRBUF_SIZE, errno, "Can't receive packet");
193 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %zd) (nlmsg_len: %u)", len, nlh->nlmsg_len);
215 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Malformed message: (nlmsg_len: %u)", nlh->nlmsg_len);
333 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
548 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
557 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
573 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
611 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
621 PCAP_ERRBUF_SIZE, errno,
633 pcapint_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
pcap-snoop.c 156 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
218 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
234 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
240 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
290 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
316 snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
349 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
383 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
389 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
397 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
    [all...]
dlpisubs.c 263 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
321 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "unknown mactype 0x%x",
393 pcapint_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
428 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, err, "%s", func);
451 strlcpy(errbuf, "", PCAP_ERRBUF_SIZE);
462 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE,
481 strlcpy(errbuf, "", PCAP_ERRBUF_SIZE);
489 pcapint_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno,
521 snprintf(errbuf, PCAP_ERRBUF_SIZE,
541 snprintf(errbuf, PCAP_ERRBUF_SIZE,
    [all...]
  /src/external/bsd/libpcap/dist/rpcapd/
daemon.c 219 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed
220 char errmsgbuf[PCAP_ERRBUF_SIZE + 1]; // buffer for errors to send to the client
262 SOCK_EOF_ISNT_ERROR|SOCK_MSG_PEEK, errbuf, PCAP_ERRBUF_SIZE);
337 ssl = ssl_promotion(1, sockctrl, errbuf, PCAP_ERRBUF_SIZE);
364 errbuf, PCAP_ERRBUF_SIZE);
394 TLS_RECORD_HEADER_LEN, errbuf, PCAP_ERRBUF_SIZE) == -1)
404 TLS_ALERT_LEN, errbuf, PCAP_ERRBUF_SIZE) == -1)
450 sock_geterrmsg(errmsgbuf, PCAP_ERRBUF_SIZE,
460 host_port_check_status = sock_check_hostlist(passiveClients, RPCAP_HOSTLIST_SEP, &from, errmsgbuf, PCAP_ERRBUF_SIZE);
525 sock_geterrmsg(errmsgbuf, PCAP_ERRBUF_SIZE,
    [all...]
rpcapd.c 42 #include <pcap.h> // for PCAP_ERRBUF_SIZE
188 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed
344 if (sock_init(errbuf, PCAP_ERRBUF_SIZE) == -1)
365 sock_geterrmsg(errbuf, PCAP_ERRBUF_SIZE,
376 sock_geterrmsg(errbuf, PCAP_ERRBUF_SIZE,
405 if (ssl_init_once(1, enable_compression, errbuf, PCAP_ERRBUF_SIZE) < 0)
437 sock_geterrmsg(errbuf, PCAP_ERRBUF_SIZE,
565 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed
622 port, &mainhints, errbuf, PCAP_ERRBUF_SIZE);
635 if ((sock = sock_open(NULL, tempaddrinfo, SOCKOPEN_SERVER, SOCKET_MAXCONN, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET
    [all...]

Completed in 39 milliseconds

1 2 3