]>
git.saurik.com Git - apple/xnu.git/blob - bsd/net/netisr.c
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Mach Operating System
24 * Copyright (c) 1987 Carnegie-Mellon University
25 * All rights reserved. The CMU software License Agreement specifies
26 * the terms and conditions for use and redistribution.
30 * 18-May-90 Avadis Tevanian (avie) at NeXT
31 * Changed to use sensible priorities (higher numbers -> higher pri).
33 * 1-Feb-88 David Golub (dbg) at Carnegie-Mellon University
34 * Goofed... netisr thread must run at splnet, because the routines
35 * it calls expect to be called from the softnet interrupt (at
38 * 19-Nov-87 David Golub (dbg) at Carnegie-Mellon University
46 * Kernel thread for network code.
50 #include <meta_features.h>
51 #include <machine/spl.h>
52 #include <net/netisr.h>
54 #include <kern/thread.h>
55 #include <kern/processor.h>
67 if (netisr
& (1<<NETISR_IMP
)){
68 netisr
&= ~(1<<NETISR_IMP
);
75 if (netisr
& (1<<NETISR_IP
)){
78 netisr
&= ~(1<<NETISR_IP
);
81 if (netisr
& (1<<NETISR_ARP
)) {
84 netisr
&= ~(1<<NETISR_ARP
);
90 if (netisr
& (1<<NETISR_IPV6
)){
93 netisr
&= ~(1<<NETISR_IPV6
);
99 if (netisr
& (1<<NETISR_ISO
)) {
100 netisr
&= ~(1<<NETISR_ISO
);
106 if (netisr
& (1<<NETISR_CCITT
)) {
107 netisr
&= ~(1<<NETISR_CCITT
);
113 if (netisr
& (1<<NETISR_NS
)){
114 netisr
&= ~(1<<NETISR_NS
);
120 if (netisr
& (1<<NETISR_APPLETALK
)){
121 void atalkintr(void);
123 netisr
&= ~(1<<NETISR_APPLETALK
);