/external/libpcap/ |
D | pcap-dlpi.c | 833 split_dname(char *device, int *unitp, char *ebuf) argument 844 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number", 856 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device); 860 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large", 865 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative", 874 dl_doattach(int fd, int ppa, char *ebuf) argument 882 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0) 885 err = dlokack(fd, "attach", (char *)buf, ebuf); 893 dl_dohpuxbind(int fd, char *ebuf) argument 908 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, char *ebuf) in pcap_create_interface() argument 156 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dos)); in pcap_create_interface() 467 char *pcap_lookupdev (char *ebuf) in pcap_lookupdev() argument 487 if (ebuf) in pcap_lookupdev() 488 strcpy (ebuf, "No driver found"); in pcap_lookupdev() 621 open_driver (const char *dev_name, char *ebuf, int promisc) in open_driver() argument 638 sprintf (ebuf, "failed to detect device `%s'", dev_name); in open_driver() 660 sprintf (ebuf, "failed to activate device `%s'", dev_name); in open_driver() 663 strcat (ebuf, ": "); in open_driver() [all …]
|
D | pcap-null.c | 39 pcap_create_interface(const char *device, char *ebuf) in pcap_create_interface() argument 41 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); in pcap_create_interface()
|
D | pcap.c | 488 pcap_alloc_pcap_t(char *ebuf, size_t size) in pcap_alloc_pcap_t() argument 501 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in pcap_alloc_pcap_t() 532 pcap_create_common(const char *source, char *ebuf, size_t size) in pcap_create_common() argument 536 p = pcap_alloc_pcap_t(ebuf, size); in pcap_create_common() 542 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in pcap_create_common() 815 pcap_open_offline_common(char *ebuf, size_t size) in pcap_open_offline_common() argument 819 p = pcap_alloc_pcap_t(ebuf, size); in pcap_open_offline_common() 826 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in pcap_open_offline_common() 1528 static char ebuf[15+10+1]; in pcap_statustostr() local 1577 (void)snprintf(ebuf, sizeof ebuf, "Unknown error: %d", errnum); in pcap_statustostr() [all …]
|
D | pcap-linux.c | 412 static int iface_get_id(int fd, const char *device, char *ebuf); 414 static int iface_get_mtu(int fd, const char *device, char *ebuf); 415 static int iface_get_arptype(int fd, const char *device, char *ebuf); 417 static int iface_bind(int fd, int ifindex, char *ebuf); 419 static int has_wext(int sock_fd, const char *device, char *ebuf); 425 static int iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf); 430 static int iface_bind_old(int fd, const char *device, char *ebuf); 446 pcap_create_interface(const char *device, char *ebuf) in pcap_create_interface() argument 450 handle = pcap_create_common(device, ebuf, sizeof (struct pcap_linux)); in pcap_create_interface() 461 if (iface_ethtool_get_ts_info(handle, ebuf) == -1) { in pcap_create_interface() [all …]
|
D | pcap-septel.c | 218 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours) { in septel_create() argument 235 p = pcap_create_common(device, ebuf, sizeof (struct pcap_septel)); in septel_create()
|
D | pcap-can-linux.h | 35 pcap_t* can_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-bt-linux.h | 38 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
|
D | pcap-canusb-linux.h | 35 pcap_t* canusb_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-usb-linux.h | 38 pcap_t *usb_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);
|
D | pcap-can-linux.c | 95 can_create(const char *device, char *ebuf, int *is_ours) in can_create() argument 134 p = pcap_create_common(device, ebuf, sizeof (struct pcap_can)); in can_create()
|
D | pcap-bt-monitor-linux.c | 220 bt_monitor_create(const char *device, char *ebuf, int *is_ours) in bt_monitor_create() argument 235 p = pcap_create_common(device, ebuf, 0); in bt_monitor_create()
|
D | pcap-snf.c | 423 snf_create(const char *device, char *ebuf, int *is_ours) in snf_create() argument 473 p = pcap_create_common(device, ebuf, sizeof (struct pcap_snf)); in snf_create() 484 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in snf_create()
|
/external/libpcap/tests/ |
D | selpolltest.c | 62 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 116 device = pcap_lookupdev(ebuf); in main() 118 error("%s", ebuf); in main() 120 *ebuf = '\0'; in main() 121 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); in main() 123 error("%s", ebuf); in main() 124 else if (*ebuf) in main() 125 warning("%s", ebuf); in main() 126 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 129 warning("%s", ebuf); in main() [all …]
|
D | capturetest.c | 68 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 120 device = pcap_lookupdev(ebuf); in main() 122 error("%s", ebuf); in main() 124 *ebuf = '\0'; in main() 125 pd = pcap_create(device, ebuf); in main() 127 error("%s", ebuf); in main() 157 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main() 160 warning("%s", ebuf); in main() 169 if (pcap_setnonblock(pd, nonblock, ebuf) == -1) in main() 170 error("pcap_setnonblock failed: %s", ebuf); in main()
|
D | opentest.c | 55 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 117 pd = pcap_create(device, ebuf); in main() 119 error("%s", ebuf); in main() 162 *ebuf = '\0'; in main() 163 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); in main() 165 error("%s", ebuf); in main() 166 else if (*ebuf) in main() 167 warning("%s", ebuf); in main()
|
D | valgrindtest.c | 215 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 272 device = pcap_lookupdev(ebuf); in main() 275 ebuf); in main() 302 pd = pcap_create(device, ebuf); in main() 304 error("%s: pcap_create() failed: %s", device, ebuf); in main() 339 *ebuf = '\0'; in main() 340 pd = pcap_open_live(device, 65535, 1, 1000, ebuf); in main() 342 error("%s", ebuf); in main() 343 else if (*ebuf) in main() 344 warning("%s", ebuf); in main()
|
D | reactivatetest.c | 40 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 44 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf); in main() 46 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf); in main() 49 ebuf); in main()
|
/external/tcpdump/ |
D | tcpdump.c | 571 char ebuf[PCAP_ERRBUF_SIZE]; in show_devices_and_exit() local 574 if (pcap_findalldevs(&devpointer, ebuf) < 0) in show_devices_and_exit() 575 error("%s", ebuf); in show_devices_and_exit() 1016 char ebuf[PCAP_ERRBUF_SIZE]; in main() local 1068 if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0) in main() 1069 error("%s", ebuf); in main() 1186 if (pcap_findalldevs(&devpointer, ebuf) < 0) in main() 1187 error("%s", ebuf); in main() 1564 gndo->ndo_tstamp_precision, ebuf); in main() 1566 pd = pcap_open_offline(RFileName, ebuf); in main() [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/opencv/cv/src/ |
D | cvstereogc.cpp | 669 GCEdge* ebuf = (GCEdge*)state->edgeBuf->data.ptr; in icvAlphaExpand() local 692 ebuf[k].dst = 0; in icvAlphaExpand() 693 ebuf[k].next = 0; in icvAlphaExpand() 694 ebuf[k].weight = 0; in icvAlphaExpand() 743 delta, delta, 0, ebuf, nedges ); in icvAlphaExpand() 746 E += icvAddTerm( var, var1, 0, INFINITY, 0, 0, ebuf, nedges ); in icvAlphaExpand() 759 E += icvAddTerm( var, var1, 0, E0a, Ea0, Eaa, ebuf, nedges ); in icvAlphaExpand() 781 E += icvAddTerm( var, var1, E00, E0a, Ea0, 0, ebuf, nedges ); in icvAlphaExpand() 792 E += icvAddTerm( var, var1, E00, E0a, Ea0, 0, ebuf, nedges ); in icvAlphaExpand() 805 E += icvAddTerm( var, var1, 0, INFINITY, 0, 0, ebuf, nedges ); in icvAlphaExpand() [all …]
|
/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()
|