Move ipflow_slowtimo from ip_slowtimo and into in_proto.c
ok matt@
This commit is contained in:
parent
e8284b2c49
commit
5aa6f5addf
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: in_proto.c,v 1.82 2007/03/04 23:53:36 liamjfoy Exp $ */
|
||||
/* $NetBSD: in_proto.c,v 1.83 2007/03/05 00:50:53 liamjfoy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@ -61,7 +61,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.82 2007/03/04 23:53:36 liamjfoy Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.83 2007/03/05 00:50:53 liamjfoy Exp $");
|
||||
|
||||
#include "opt_mrouting.h"
|
||||
#include "opt_eon.h" /* ISO CLNL over IP */
|
||||
@ -206,6 +206,12 @@ const struct protosw inetsw[] = {
|
||||
.pr_usrreq = rip_usrreq,
|
||||
.pr_init = icmp_init,
|
||||
},
|
||||
#ifdef GATEWAY
|
||||
{ .pr_domain = &inetdomain,
|
||||
.pr_protocol = IPPROTO_IP,
|
||||
.pr_slowtimo = ipflow_slowtimo,
|
||||
},
|
||||
#endif /* GATEWAY */
|
||||
#ifdef IPSEC
|
||||
{ .pr_type = SOCK_RAW,
|
||||
.pr_domain = &inetdomain,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip_input.c,v 1.244 2007/03/04 06:03:21 christos Exp $ */
|
||||
/* $NetBSD: ip_input.c,v 1.245 2007/03/05 00:50:53 liamjfoy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@ -98,7 +98,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.244 2007/03/04 06:03:21 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.245 2007/03/05 00:50:53 liamjfoy Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_gateway.h"
|
||||
@ -1407,9 +1407,6 @@ ip_slowtimo(void)
|
||||
dropscanidx = i;
|
||||
}
|
||||
IPQ_UNLOCK();
|
||||
#ifdef GATEWAY
|
||||
ipflow_slowtimo();
|
||||
#endif
|
||||
splx(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user