/* Default one-shot callback; overridden for capture types where the packet data cannot be guaranteed to be available after the callback returns, so that a copy must be made.  */
void pcap_oneshot(u_char *user, const struct pcap_pkthdr *h, const u_char *pkt)
/* Default one-shot callback; overridden for capture types where the packet data cannot be guaranteed to be available after the callback returns, so that a copy must be made.  */
void pcap_oneshot(u_char *user, const struct pcap_pkthdr *h, const u_char *pkt)
{
	struct oneshot_userdata *sp = (struct oneshot_userdata *)user;
	*sp->hdr = *h;
	*sp->pkt = pkt;
}