xref: /freebsd/contrib/libpcap/pcap-usb-linux-common.h (revision 6f9cba8f8b5efd16249633e52483ea351876b67b)
1*6f9cba8fSJoseph Mingrone /*
2*6f9cba8fSJoseph Mingrone  * Copyright (c) 1993, 1994, 1995, 1996, 1997
3*6f9cba8fSJoseph Mingrone  *	The Regents of the University of California.  All rights reserved.
4*6f9cba8fSJoseph Mingrone  *
5*6f9cba8fSJoseph Mingrone  * Redistribution and use in source and binary forms, with or without
6*6f9cba8fSJoseph Mingrone  * modification, are permitted provided that: (1) source code distributions
7*6f9cba8fSJoseph Mingrone  * retain the above copyright notice and this paragraph in its entirety, (2)
8*6f9cba8fSJoseph Mingrone  * distributions including binary code include the above copyright notice and
9*6f9cba8fSJoseph Mingrone  * this paragraph in its entirety in the documentation or other materials
10*6f9cba8fSJoseph Mingrone  * provided with the distribution, and (3) all advertising materials mentioning
11*6f9cba8fSJoseph Mingrone  * features or use of this software display the following acknowledgement:
12*6f9cba8fSJoseph Mingrone  * ``This product includes software developed by the University of California,
13*6f9cba8fSJoseph Mingrone  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14*6f9cba8fSJoseph Mingrone  * the University nor the names of its contributors may be used to endorse
15*6f9cba8fSJoseph Mingrone  * or promote products derived from this software without specific prior
16*6f9cba8fSJoseph Mingrone  * written permission.
17*6f9cba8fSJoseph Mingrone  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18*6f9cba8fSJoseph Mingrone  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19*6f9cba8fSJoseph Mingrone  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20*6f9cba8fSJoseph Mingrone  *
21*6f9cba8fSJoseph Mingrone  * pcap-usb-linux-common.h - common code for everything that needs to
22*6f9cba8fSJoseph Mingrone  * deal with Linux USB captures.
23*6f9cba8fSJoseph Mingrone  */
24*6f9cba8fSJoseph Mingrone 
25*6f9cba8fSJoseph Mingrone extern void fix_linux_usb_mmapped_length(struct pcap_pkthdr *pkth,
26*6f9cba8fSJoseph Mingrone     const u_char *bp);
27