tcp_timer.c (62454) | tcp_timer.c (62573) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 |
34 * $FreeBSD: head/sys/netinet/tcp_timer.c 62454 2000-07-03 09:35:31Z phk $ | 34 * $FreeBSD: head/sys/netinet/tcp_timer.c 62573 2000-07-04 11:25:35Z phk $ |
35 */ 36 37#include "opt_compat.h" 38#include "opt_inet6.h" 39#include "opt_tcpdebug.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 20 unchanged lines hidden (view full) --- 63#include <netinet/tcp_timer.h> 64#include <netinet/tcp_var.h> 65#include <netinet/tcpip.h> 66#ifdef TCPDEBUG 67#include <netinet/tcp_debug.h> 68#endif 69 70static int | 35 */ 36 37#include "opt_compat.h" 38#include "opt_inet6.h" 39#include "opt_tcpdebug.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 20 unchanged lines hidden (view full) --- 63#include <netinet/tcp_timer.h> 64#include <netinet/tcp_var.h> 65#include <netinet/tcpip.h> 66#ifdef TCPDEBUG 67#include <netinet/tcp_debug.h> 68#endif 69 70static int |
71sysctl_msec_to_ticks (SYSCTL_HANDLER_ARGS) | 71sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) |
72{ 73 int error, s, tt; 74 75 tt = *(int *)oidp->oid_arg1; 76 s = tt * 1000 / hz; 77 78 error = sysctl_handle_int(oidp, &s, 0, req); 79 if (error || !req->newptr) --- 393 unchanged lines hidden --- | 72{ 73 int error, s, tt; 74 75 tt = *(int *)oidp->oid_arg1; 76 s = tt * 1000 / hz; 77 78 error = sysctl_handle_int(oidp, &s, 0, req); 79 if (error || !req->newptr) --- 393 unchanged lines hidden --- |