/external/libpcap/ |
D | pcap-dlpi.c | 872 split_dname(char *device, u_int *unitp, char *ebuf) argument 883 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number", 895 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device); 899 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large", 904 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative", 913 dl_doattach(int fd, int ppa, char *ebuf) argument 921 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0) 924 err = dlokack(fd, "attach", (char *)buf, ebuf); 932 dl_dohpuxbind(int fd, char *ebuf) argument 947 if (dlbindreq(fd, hpsap, ebuf) < 0) [all …]
|
D | pcap-dos.c | 111 static int first_init (const char *name, char *ebuf, int promisc); 152 pcap_t *pcap_create_interface (const char *device _U_, char *ebuf) in pcap_create_interface() argument 156 p = pcap_create_common(ebuf, sizeof (struct pcap_dos)); in pcap_create_interface() 490 char *pcap_lookupdev (char *ebuf) in pcap_lookupdev() argument 510 if (ebuf) in pcap_lookupdev() 511 strcpy (ebuf, "No driver found"); in pcap_lookupdev() 653 open_driver (const char *dev_name, char *ebuf, int promisc) in open_driver() argument 670 pcap_snprintf (ebuf, PCAP_ERRBUF_SIZE, "failed to detect device `%s'", dev_name); in open_driver() 692 pcap_snprintf (ebuf, PCAP_ERRBUF_SIZE, "failed to activate device `%s'", dev_name); in open_driver() 695 strcat (ebuf, ": "); in open_driver() [all …]
|
D | pcap-null.c | 33 pcap_create_interface(const char *device _U_, char *ebuf) in pcap_create_interface() argument 35 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); in pcap_create_interface()
|
D | pcap.c | 1422 get_substring(const char *p, size_t len, char *ebuf) 1428 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1474 char **hostp, char **portp, char **pathp, char *ebuf) 1523 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1548 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1566 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1581 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1607 pcap_fmt_errmsg_for_errno(ebuf, PCAP_ERRBUF_SIZE, 1620 authority = get_substring(colonp + 3, authority_len, ebuf); 1646 userinfo = get_substring(parsep, userinfo_len, ebuf); [all …]
|
D | pcap-linux.c | 465 static int iface_get_id(int fd, const char *device, char *ebuf); 467 static int iface_get_mtu(int fd, const char *device, char *ebuf); 468 static int iface_get_arptype(int fd, const char *device, char *ebuf); 470 static int iface_bind(int fd, int ifindex, char *ebuf, int protocol); 472 static int has_wext(int sock_fd, const char *device, char *ebuf); 479 char *ebuf); 484 static int iface_bind_old(int fd, const char *device, char *ebuf); 500 pcap_create_interface(const char *device, char *ebuf) in pcap_create_interface() argument 504 handle = pcap_create_common(ebuf, sizeof (struct pcap_linux)); in pcap_create_interface() 515 if (iface_ethtool_get_ts_info(device, handle, ebuf) == -1) { in pcap_create_interface() [all …]
|
D | pcap-septel.c | 230 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours) { in septel_create() argument 247 p = pcap_create_common(ebuf, sizeof (struct pcap_septel)); in septel_create()
|
D | pcap-rdmasniff.h | 1 pcap_t *rdmasniff_create(const char *device, char *ebuf, int *is_ours);
|
D | pcap-septel.h | 12 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
|
D | pcap-usb-linux.h | 38 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
|
D | pcap-netfilter-linux.h | 35 pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours);
|
D | pcap-bt-monitor-linux.h | 32 pcap_t *bt_monitor_create(const char *device, char *ebuf, int *is_ours);
|
/external/ltp/testcases/kernel/syscalls/nftw/ |
D | tools64.c | 32 extern char ebuf[ERR_BUF_SIZ]; 72 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path() 73 perror(ebuf); in setup_path() 80 sprintf(ebuf, "Can't mkdir %s %d", in setup_path() 82 perror(ebuf); in setup_path() 90 sprintf(ebuf, "Can't symlink %s ", in setup_path() 92 perror(ebuf); in setup_path() 101 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path() 102 perror(ebuf); in setup_path() 123 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path() [all …]
|
D | tools.c | 32 extern char ebuf[ERR_BUF_SIZ]; 73 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path() 74 perror(ebuf); in setup_path() 81 sprintf(ebuf, "Can't mkdir %s %d", in setup_path() 83 perror(ebuf); in setup_path() 91 sprintf(ebuf, "Can't symlink %s ", in setup_path() 93 perror(ebuf); in setup_path() 102 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path() 103 perror(ebuf); in setup_path() 124 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path() [all …]
|
/external/libpcap/testprogs/ |
D | opentest.c | 63 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 126 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 127 error("%s", ebuf); in main() 134 pd = pcap_create(device, ebuf); in main() 136 error("%s: pcap_create failed: %s", device, ebuf); in main() 180 *ebuf = '\0'; in main() 181 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); in main() 183 error("%s", ebuf); in main() 184 else if (*ebuf) in main() 185 warning("%s", ebuf); in main()
|
D | capturetest.c | 75 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 127 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 128 error("%s", ebuf); in main() 134 *ebuf = '\0'; in main() 135 pd = pcap_create(device, ebuf); in main() 137 error("%s", ebuf); in main() 167 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 170 warning("%s", ebuf); in main() 179 if (pcap_setnonblock(pd, nonblock, ebuf) == -1) in main() 180 error("pcap_setnonblock failed: %s", ebuf); in main()
|
D | selpolltest.c | 75 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 134 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 135 error("%s", ebuf); in main() 141 *ebuf = '\0'; in main() 142 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); in main() 144 error("%s", ebuf); in main() 145 else if (*ebuf) in main() 146 warning("%s", ebuf); in main() 147 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 150 warning("%s", ebuf); in main() [all …]
|
D | valgrindtest.c | 234 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 292 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 293 error("%s", ebuf); in main() 323 pd = pcap_create(device, ebuf); in main() 325 error("%s: pcap_create() failed: %s", device, ebuf); in main() 360 *ebuf = '\0'; in main() 361 pd = pcap_open_live(device, 65535, 1, 1000, ebuf); in main() 363 error("%s", ebuf); in main() 364 else if (*ebuf) in main() 365 warning("%s", ebuf); in main()
|
D | reactivatetest.c | 44 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 48 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf); in main() 50 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf); in main() 53 ebuf); in main()
|
D | threadsignaltest.c | 189 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 217 if (pcap_findalldevs(&devlist, ebuf) == -1) in main() 218 error("%s", ebuf); in main() 224 *ebuf = '\0'; in main() 225 pd = pcap_create(device, ebuf); in main() 227 error("%s", ebuf); in main() 257 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 260 warning("%s", ebuf); in main()
|
D | can_set_rfmon_test.c | 49 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 62 pd = pcap_create(argv[1], ebuf); in main() 64 error("%s", ebuf); in main()
|
/external/cn-cbor/src/ |
D | cn-cbor.c | 72 unsigned char *ebuf; member 76 #define TAKE(pos, ebuf, n, stmt) \ argument 77 if (n > (size_t)(ebuf - pos)) \ 84 unsigned char *ebuf = pb->ebuf; in decode_item() local 103 TAKE(pos, ebuf, 1, ib = ntoh8p(pos) ); in decode_item() 138 case AI_1: TAKE(pos, ebuf, 1, val = ntoh8p(pos)) ; break; in decode_item() 139 case AI_2: TAKE(pos, ebuf, 2, val = ntoh16p(pos)) ; break; in decode_item() 140 case AI_4: TAKE(pos, ebuf, 4, val = ntoh32p(pos)) ; break; in decode_item() 141 case AI_8: TAKE(pos, ebuf, 8, val = ntoh64p(pos)) ; break; in decode_item() 162 TAKE(pos, ebuf, val, ;); in decode_item() [all …]
|
/external/tcpdump/ |
D | tcpdump.c | 423 char ebuf[PCAP_ERRBUF_SIZE]; in show_devices_and_exit() local 426 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit() 427 error("%s", ebuf); in show_devices_and_exit() 926 char ebuf[PCAP_ERRBUF_SIZE]; in find_interface_by_number() local 929 if (pcap_findalldevs(&devlist, ebuf) < 0) in find_interface_by_number() 930 error("%s", ebuf); in find_interface_by_number() 946 open_interface(const char *device, netdissect_options *ndo, char *ebuf) in open_interface() argument 955 pc = pcap_create(device, ebuf); in open_interface() 963 if (strstr(ebuf, "No such device") != NULL) in open_interface() 965 error("%s", ebuf); in open_interface() [all …]
|
D | machdep.c | 63 abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_) in abort_on_misalignment() 69 (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno); in abort_on_misalignment()
|
/external/one-true-awk/ |
D | lex.c | 542 char ebuf[300]; variable 543 char *ep = ebuf; 562 if (ep >= ebuf + sizeof ebuf) in input() 563 ep = ebuf; in input() 576 if (--ep < ebuf) in unput() 577 ep = ebuf + sizeof(ebuf) - 1; in unput()
|
/external/iputils/ninfod/ |
D | ninfod.c | 167 char ebuf[512]; in stderrlog() local 173 for (buf = ebuf, buflen = sizeof(ebuf); in stderrlog() 175 free(buf != ebuf ? buf : NULL), buf = NULL, buflen *= 2) { in stderrlog() 199 free(buf != ebuf ? buf : NULL); in stderrlog()
|