projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more lint
[unix-history]
/
usr
/
src
/
sys
/
kern
/
uipc_proto.c
diff --git
a/usr/src/sys/kern/uipc_proto.c
b/usr/src/sys/kern/uipc_proto.c
index
e99cd32
..
63b3b78
100644
(file)
--- a/
usr/src/sys/kern/uipc_proto.c
+++ b/
usr/src/sys/kern/uipc_proto.c
@@
-1,11
+1,13
@@
-/* uipc_proto.c 4.2
1 82/04/25
*/
+/* uipc_proto.c 4.2
6 82/10/17
*/
#include "../h/param.h"
#include "../h/socket.h"
#include "../h/protosw.h"
#include "../h/mbuf.h"
#include "../h/param.h"
#include "../h/socket.h"
#include "../h/protosw.h"
#include "../h/mbuf.h"
-#include "../net/in.h"
-#include "../net/in_systm.h"
+#include <time.h>
+#include "../h/kernel.h"
+#include "../netinet/in.h"
+#include "../netinet/in_systm.h"
/*
* Protocol configuration table and routines to search it.
/*
* Protocol configuration table and routines to search it.
@@
-139,10
+141,11
@@
pfinit()
{
register struct protosw *pr;
{
register struct protosw *pr;
-COUNT(PFINIT);
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_init)
(*pr->pr_init)();
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_init)
(*pr->pr_init)();
+ pffasttimo();
+ pfslowtimo();
}
/*
}
/*
@@
-155,7
+158,6
@@
pffindtype(family, type)
{
register struct protosw *pr;
{
register struct protosw *pr;
-COUNT(PFFINDTYPE);
if (family == 0)
return (0);
for (pr = protosw; pr <= protoswLAST; pr++)
if (family == 0)
return (0);
for (pr = protosw; pr <= protoswLAST; pr++)
@@
-173,7
+175,6
@@
pffindproto(family, protocol)
{
register struct protosw *pr;
{
register struct protosw *pr;
-COUNT(PFFINDPROTO);
if (family == 0)
return (0);
for (pr = protosw; pr <= protoswLAST; pr++)
if (family == 0)
return (0);
for (pr = protosw; pr <= protoswLAST; pr++)
@@
-187,7
+188,6
@@
pfctlinput(cmd, arg)
caddr_t arg;
{
register struct protosw *pr;
caddr_t arg;
{
register struct protosw *pr;
-COUNT(PFCTLINPUT);
for (pr = protosw; pr <= protoswLAST; pr++)
if (pr->pr_ctlinput)
for (pr = protosw; pr <= protoswLAST; pr++)
if (pr->pr_ctlinput)
@@
-201,18
+201,18
@@
pfslowtimo()
{
register struct protosw *pr;
{
register struct protosw *pr;
-COUNT(PFSLOWTIMO);
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_slowtimo)
(*pr->pr_slowtimo)();
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_slowtimo)
(*pr->pr_slowtimo)();
+ timeout(pfslowtimo, (caddr_t)0, hz / PR_SLOWHZ);
}
pffasttimo()
{
register struct protosw *pr;
}
pffasttimo()
{
register struct protosw *pr;
-COUNT(PFSLOWTIMO);
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_fasttimo)
(*pr->pr_fasttimo)();
for (pr = protoswLAST; pr >= protosw; pr--)
if (pr->pr_fasttimo)
(*pr->pr_fasttimo)();
+ timeout(pffasttimo, (caddr_t)0, hz / PR_FASTHZ);
}
}