* 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 "systm.h"
#include "socket.h"
#include "protosw.h"
#include "domain.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); \
}
+static void pfslowtimo(caddr_t, int);
+static void pffasttimo(caddr_t, int);
+
+void
domaininit()
{
register struct domain *dp;
max_linkhdr = 16;
max_hdr = max_linkhdr + max_protohdr;
max_datalen = MHLEN - max_hdr;
- pffasttimo();
- pfslowtimo();
+ pffasttimo(0, 0);
+ pfslowtimo(0, 0);
}
struct protosw *
return (maybe);
}
+void
pfctlinput(cmd, sa)
int cmd;
struct sockaddr *sa;
(*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;
timeout(pfslowtimo, (caddr_t)0, hz/2);
}
-pffasttimo()
+static void
+pffasttimo(caddr_t dummy1, int dummy2)
{
register struct domain *dp;
register struct protosw *pr;