New interrupt code from Bruce Evans. In additional to Bruce's attached
[unix-history] / sys / kern / uipc_domain.c
index 6b0d60f..22613fd 100644 (file)
  * SUCH DAMAGE.
  *
  *     from: @(#)uipc_domain.c 7.9 (Berkeley) 3/4/91
  * SUCH DAMAGE.
  *
  *     from: @(#)uipc_domain.c 7.9 (Berkeley) 3/4/91
- *     $Id$
+ *     $Id: uipc_domain.c,v 1.4 1993/11/25 01:33:31 wollman Exp $
  */
 
  */
 
-#include <sys/cdefs.h>
 #include "param.h"
 #include "param.h"
+#include "systm.h"
 #include "socket.h"
 #include "protosw.h"
 #include "domain.h"
 #include "socket.h"
 #include "protosw.h"
 #include "domain.h"
 #include "time.h"
 #include "kernel.h"
 
 #include "time.h"
 #include "kernel.h"
 
+struct domain *domains;
+
 #define        ADDDOMAIN(x)    { \
        extern struct domain __CONCAT(x,domain); \
        __CONCAT(x,domain.dom_next) = domains; \
        domains = &__CONCAT(x,domain); \
 }
 
 #define        ADDDOMAIN(x)    { \
        extern struct domain __CONCAT(x,domain); \
        __CONCAT(x,domain.dom_next) = domains; \
        domains = &__CONCAT(x,domain); \
 }
 
+static void pfslowtimo(caddr_t, int);
+static void pffasttimo(caddr_t, int);
+
+void
 domaininit()
 {
        register struct domain *dp;
 domaininit()
 {
        register struct domain *dp;
@@ -91,8 +97,8 @@ if (max_linkhdr < 16)         /* XXX */
 max_linkhdr = 16;
        max_hdr = max_linkhdr + max_protohdr;
        max_datalen = MHLEN - max_hdr;
 max_linkhdr = 16;
        max_hdr = max_linkhdr + max_protohdr;
        max_datalen = MHLEN - max_hdr;
-       pffasttimo();
-       pfslowtimo();
+       pffasttimo(0, 0);
+       pfslowtimo(0, 0);
 }
 
 struct protosw *
 }
 
 struct protosw *
@@ -139,6 +145,7 @@ found:
        return (maybe);
 }
 
        return (maybe);
 }
 
+void
 pfctlinput(cmd, sa)
        int cmd;
        struct sockaddr *sa;
 pfctlinput(cmd, sa)
        int cmd;
        struct sockaddr *sa;
@@ -152,7 +159,8 @@ pfctlinput(cmd, sa)
                                (*pr->pr_ctlinput)(cmd, sa, (caddr_t) 0);
 }
 
                                (*pr->pr_ctlinput)(cmd, sa, (caddr_t) 0);
 }
 
-pfslowtimo()
+static void
+pfslowtimo(caddr_t dummy1, int dummy2)
 {
        register struct domain *dp;
        register struct protosw *pr;
 {
        register struct domain *dp;
        register struct protosw *pr;
@@ -164,7 +172,8 @@ pfslowtimo()
        timeout(pfslowtimo, (caddr_t)0, hz/2);
 }
 
        timeout(pfslowtimo, (caddr_t)0, hz/2);
 }
 
-pffasttimo()
+static void
+pffasttimo(caddr_t dummy1, int dummy2)
 {
        register struct domain *dp;
        register struct protosw *pr;
 {
        register struct domain *dp;
        register struct protosw *pr;