Searched defs:ebuf (Results 1 - 25 of 37) sorted by relevance

12

/external/libpcap/
H A Dpcap-null.c39 pcap_create_interface(const char *device, char *ebuf) argument
41 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
H A Dpcap-bt-monitor-linux.c220 bt_monitor_create(const char *device, char *ebuf, int *is_ours) argument
235 p = pcap_create_common(device, ebuf, 0);
H A Dpcap-can-linux.c95 can_create(const char *device, char *ebuf, int *is_ours) argument
134 p = pcap_create_common(device, ebuf, sizeof (struct pcap_can));
H A Dpcap-dbus.c249 dbus_create(const char *device, char *ebuf, int *is_ours) argument
262 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dbus));
H A Dpcap-nit.c351 pcap_create_interface(const char *device, char *ebuf) argument
355 p = pcap_create_common(device, ebuf, sizeof (struct pcap_nit));
H A Dpcap-septel.c218 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours) { argument
235 p = pcap_create_common(device, ebuf, sizeof (struct pcap_septel));
H A Dpcap-snoop.c402 pcap_create_interface(const char *device, char *ebuf) argument
406 p = pcap_create_common(device, ebuf, sizeof (struct pcap_snoop));
H A Dpcap-bt-linux.c140 bt_create(const char *device, char *ebuf, int *is_ours) argument
174 p = pcap_create_common(device, ebuf, sizeof (struct pcap_bt));
H A Dpcap-libdlpi.c412 pcap_create_interface(const char *device, char *ebuf) argument
416 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dlpi));
H A Dpcap-pf.c506 pcap_create_interface(const char *device, char *ebuf) argument
510 p = pcap_create_common(device, ebuf, sizeof (struct pcap_pf));
H A Dpcap-snf.c423 snf_create(const char *device, char *ebuf, int *is_ours) argument
473 p = pcap_create_common(device, ebuf, sizeof (struct pcap_snf));
484 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
H A Dpcap-snit.c429 pcap_create_interface(const char *device, char *ebuf) argument
433 p = pcap_create_common(device, ebuf, sizeof (struct pcap_snit));
H A Dpcap-canusb-linux.c207 canusb_create(const char *device, char *ebuf, int *is_ours) argument
242 p = pcap_create_common(device, ebuf, sizeof (struct pcap_canusb));
H A Dpcap-netfilter-linux.c592 netfilter_create(const char *device, char *ebuf, int *is_ours) argument
626 p = pcap_create_common(device, ebuf, sizeof (struct pcap_netfilter));
H A Dpcap-win32.c781 pcap_create_interface(const char *device, char *ebuf) argument
804 snprintf(ebuf, PCAP_ERRBUF_SIZE, "Malloc failed");
809 p = pcap_create_common(deviceAscii, ebuf, sizeof (struct pcap_win));
814 p = pcap_create_common(device, ebuf, sizeof (struct pcap_win));
H A Dpcap-dag.c885 pcap_t *dag_create(const char *device, char *ebuf, int *is_ours) argument
935 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dag));
951 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
H A Dpcap-dlpi.c830 * Returns NULL on error, and fills "ebuf" with an error message.
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
1007 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1027 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1309 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1329 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1336 dlokack(int fd, const char *what, char *bufp, char *ebuf) argument
1344 dlinforeq(int fd, char *ebuf) argument
1354 dlinfoack(int fd, char *bufp, char *ebuf) argument
1366 dlpassive(int fd, char *ebuf) argument
1481 get_dlpi_ppa(register int fd, register const char *device, register int unit, register char *ebuf) argument
1668 get_dlpi_ppa(register int fd, register const char *ifname, register int unit, register char *ebuf) argument
1720 dlpi_kread(register int fd, register off_t addr, register void *buf, register u_int len, register char *ebuf) argument
1745 pcap_create_interface(const char *device, char *ebuf) argument
[all...]
H A Dpcap-bpf.c422 pcap_create_interface(const char *device, char *ebuf) argument
426 p = pcap_create_common(device, ebuf, sizeof (struct pcap_bpf));
553 get_dlt_list(int fd, int v, struct bpf_dltlist *bdlp, char *ebuf) argument
562 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
568 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE,
623 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE,
H A Dpcap-dos.c111 static int first_init (const char *name, char *ebuf, int promisc);
152 pcap_t *pcap_create_interface (const char *device, char *ebuf) argument
156 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dos));
467 char *pcap_lookupdev (char *ebuf) argument
487 if (ebuf)
488 strcpy (ebuf, "No driver found");
621 open_driver (const char *dev_name, char *ebuf, int promisc) argument
638 sprintf (ebuf, "failed to detect device `%s'", dev_name);
660 sprintf (ebuf, "failed to activate device `%s'", dev_name);
663 strcat (ebuf, "
767 first_init(const char *name, char *ebuf, int promisc) argument
[all...]
/external/libpcap/tests/
H A Dreactivatetest.c40 char ebuf[PCAP_ERRBUF_SIZE]; local
44 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf);
46 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf);
49 ebuf);
H A Dopentest.c55 char ebuf[PCAP_ERRBUF_SIZE]; local
117 pd = pcap_create(device, ebuf);
119 error("%s", ebuf);
162 *ebuf = '\0';
163 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
165 error("%s", ebuf);
166 else if (*ebuf)
167 warning("%s", ebuf);
H A Dcapturetest.c68 char ebuf[PCAP_ERRBUF_SIZE]; local
120 device = pcap_lookupdev(ebuf);
122 error("%s", ebuf);
124 *ebuf = '\0';
125 pd = pcap_create(device, ebuf);
127 error("%s", ebuf);
157 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
160 warning("%s", ebuf);
169 if (pcap_setnonblock(pd, nonblock, ebuf) == -1)
170 error("pcap_setnonblock failed: %s", ebuf);
[all...]
H A Dselpolltest.c62 char ebuf[PCAP_ERRBUF_SIZE]; local
116 device = pcap_lookupdev(ebuf);
118 error("%s", ebuf);
120 *ebuf = '\0';
121 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
123 error("%s", ebuf);
124 else if (*ebuf)
125 warning("%s", ebuf);
126 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
129 warning("%s", ebuf);
[all...]
H A Dvalgrindtest.c215 char ebuf[PCAP_ERRBUF_SIZE]; local
272 device = pcap_lookupdev(ebuf);
275 ebuf);
302 pd = pcap_create(device, ebuf);
304 error("%s: pcap_create() failed: %s", device, ebuf);
339 *ebuf = '\0';
340 pd = pcap_open_live(device, 65535, 1, 1000, ebuf);
342 error("%s", ebuf);
343 else if (*ebuf)
344 warning("%s", ebuf);
[all...]
/external/iputils/ninfod/
H A Dninfod.c167 char ebuf[512]; local
173 for (buf = ebuf, buflen = sizeof(ebuf);
175 free(buf != ebuf ? buf : NULL), buf = NULL, buflen *= 2) {
199 free(buf != ebuf ? buf : NULL);

Completed in 210 milliseconds

12