| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: if_mec.c,v 1.50 2014/08/10 16:44:34 tls Exp $ */ | | 1 | /* $NetBSD: if_mec.c,v 1.51 2015/04/13 21:22:34 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2004, 2008 Izumi Tsutsui. All rights reserved. | | 4 | * Copyright (c) 2004, 2008 Izumi Tsutsui. All rights reserved. |
5 | * | | 5 | * |
6 | * Redistribution and use in source and binary forms, with or without | | 6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions | | 7 | * modification, are permitted provided that the following conditions |
8 | * are met: | | 8 | * are met: |
9 | * 1. Redistributions of source code must retain the above copyright | | 9 | * 1. Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. | | 10 | * notice, this list of conditions and the following disclaimer. |
11 | * 2. Redistributions in binary form must reproduce the above copyright | | 11 | * 2. Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the | | 12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. | | 13 | * documentation and/or other materials provided with the distribution. |
14 | * | | 14 | * |
| @@ -51,42 +51,42 @@ | | | @@ -51,42 +51,42 @@ |
51 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | | 51 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
52 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | | 52 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
53 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | | 53 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
54 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | | 54 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
55 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | | 55 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
56 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | 56 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
57 | */ | | 57 | */ |
58 | | | 58 | |
59 | /* | | 59 | /* |
60 | * MACE MAC-110 Ethernet driver | | 60 | * MACE MAC-110 Ethernet driver |
61 | */ | | 61 | */ |
62 | | | 62 | |
63 | #include <sys/cdefs.h> | | 63 | #include <sys/cdefs.h> |
64 | __KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.50 2014/08/10 16:44:34 tls Exp $"); | | 64 | __KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.51 2015/04/13 21:22:34 riastradh Exp $"); |
65 | | | 65 | |
66 | #include "opt_ddb.h" | | 66 | #include "opt_ddb.h" |
67 | | | 67 | |
68 | #include <sys/param.h> | | 68 | #include <sys/param.h> |
69 | #include <sys/systm.h> | | 69 | #include <sys/systm.h> |
70 | #include <sys/device.h> | | 70 | #include <sys/device.h> |
71 | #include <sys/callout.h> | | 71 | #include <sys/callout.h> |
72 | #include <sys/mbuf.h> | | 72 | #include <sys/mbuf.h> |
73 | #include <sys/malloc.h> | | 73 | #include <sys/malloc.h> |
74 | #include <sys/kernel.h> | | 74 | #include <sys/kernel.h> |
75 | #include <sys/socket.h> | | 75 | #include <sys/socket.h> |
76 | #include <sys/ioctl.h> | | 76 | #include <sys/ioctl.h> |
77 | #include <sys/errno.h> | | 77 | #include <sys/errno.h> |
78 | | | 78 | |
79 | #include <sys/rnd.h> | | 79 | #include <sys/rndsource.h> |
80 | | | 80 | |
81 | #include <net/if.h> | | 81 | #include <net/if.h> |
82 | #include <net/if_dl.h> | | 82 | #include <net/if_dl.h> |
83 | #include <net/if_media.h> | | 83 | #include <net/if_media.h> |
84 | #include <net/if_ether.h> | | 84 | #include <net/if_ether.h> |
85 | | | 85 | |
86 | #include <netinet/in.h> | | 86 | #include <netinet/in.h> |
87 | #include <netinet/in_systm.h> | | 87 | #include <netinet/in_systm.h> |
88 | #include <netinet/ip.h> | | 88 | #include <netinet/ip.h> |
89 | #include <netinet/tcp.h> | | 89 | #include <netinet/tcp.h> |
90 | #include <netinet/udp.h> | | 90 | #include <netinet/udp.h> |
91 | | | 91 | |
92 | #include <net/bpf.h> | | 92 | #include <net/bpf.h> |