| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: if_cdce.c,v 1.17 2008/05/24 17:35:37 cube Exp $ */ | | 1 | /* $NetBSD: if_cdce.c,v 1.18 2008/09/24 07:19:18 ws Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com> | | 4 | * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com> |
5 | * Copyright (c) 2003 Craig Boston | | 5 | * Copyright (c) 2003 Craig Boston |
6 | * Copyright (c) 2004 Daniel Hartmeier | | 6 | * Copyright (c) 2004 Daniel Hartmeier |
7 | * All rights reserved. | | 7 | * All rights reserved. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -31,28 +31,31 @@ | | | @@ -31,28 +31,31 @@ |
31 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | | 31 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
32 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | | 32 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
33 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | | 33 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
34 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | 34 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | */ | | 35 | */ |
36 | | | 36 | |
37 | /* | | 37 | /* |
38 | * USB Communication Device Class (Ethernet Networking Control Model) | | 38 | * USB Communication Device Class (Ethernet Networking Control Model) |
39 | * http://www.usb.org/developers/devclass_docs/usbcdc11.pdf | | 39 | * http://www.usb.org/developers/devclass_docs/usbcdc11.pdf |
40 | * | | 40 | * |
41 | */ | | 41 | */ |
42 | | | 42 | |
43 | #include <sys/cdefs.h> | | 43 | #include <sys/cdefs.h> |
44 | __KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.17 2008/05/24 17:35:37 cube Exp $"); | | 44 | __KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.18 2008/09/24 07:19:18 ws Exp $"); |
45 | #include "bpfilter.h" | | 45 | #include "bpfilter.h" |
| | | 46 | #ifdef __NetBSD__ |
| | | 47 | #include "opt_inet.h" |
| | | 48 | #endif |
46 | | | 49 | |
47 | #include <sys/param.h> | | 50 | #include <sys/param.h> |
48 | #include <sys/systm.h> | | 51 | #include <sys/systm.h> |
49 | #include <sys/sockio.h> | | 52 | #include <sys/sockio.h> |
50 | #include <sys/mbuf.h> | | 53 | #include <sys/mbuf.h> |
51 | #include <sys/malloc.h> | | 54 | #include <sys/malloc.h> |
52 | #include <sys/kernel.h> | | 55 | #include <sys/kernel.h> |
53 | #include <sys/socket.h> | | 56 | #include <sys/socket.h> |
54 | #include <sys/device.h> | | 57 | #include <sys/device.h> |
55 | #if defined(__OpenBSD__) | | 58 | #if defined(__OpenBSD__) |
56 | #include <sys/proc.h> | | 59 | #include <sys/proc.h> |
57 | #endif | | 60 | #endif |
58 | | | 61 | |