Home
last modified time | relevance | path

Searched refs:oneshot_buffer (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/
Dpcap-rdmasniff.c59 u_char * oneshot_buffer; member
89 free(priv->oneshot_buffer); in rdmasniff_cleanup()
184 memcpy(priv->oneshot_buffer, bytes, h->caplen); in rdmasniff_oneshot()
185 *sp->pkt = priv->oneshot_buffer; in rdmasniff_oneshot()
277 priv->oneshot_buffer = malloc(RDMASNIFF_RECEIVE_SIZE); in rdmasniff_activate()
278 if (!priv->oneshot_buffer) { in rdmasniff_activate()
349 if (priv->oneshot_buffer) { in rdmasniff_activate()
350 free(priv->oneshot_buffer); in rdmasniff_activate()
Dpcap-linux.c321 u_char *oneshot_buffer; /* buffer for copy of packet */ member
3973 handlep->oneshot_buffer = malloc(handle->snapshot);
3974 if (handlep->oneshot_buffer == NULL) {
3987 free(handlep->oneshot_buffer);
3997 free(handlep->oneshot_buffer);
4005 free(handlep->oneshot_buffer);
4708 memcpy(handlep->oneshot_buffer, bytes, h->caplen);
4709 *sp->pkt = handlep->oneshot_buffer;
4718 if (handlep->oneshot_buffer != NULL) {
4719 free(handlep->oneshot_buffer);
[all …]