Deleted Added
full compact
in6_rmx.c (120727) in6_rmx.c (120913)
1/* $FreeBSD: head/sys/netinet6/in6_rmx.c 120727 2003-10-04 03:44:50Z sam $ */
1/* $FreeBSD: head/sys/netinet6/in6_rmx.c 120913 2003-10-08 18:26:08Z ume $ */
2/* $KAME: in6_rmx.c,v 1.11 2001/07/26 06:53:16 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 219 unchanged lines hidden (view full) ---

229}
230
231SYSCTL_DECL(_net_inet6_ip6);
232
233static int rtq_reallyold = 60*60;
234 /* one hour is ``really old'' */
235SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTEXPIRE, rtexpire,
236 CTLFLAG_RW, &rtq_reallyold , 0, "");
2/* $KAME: in6_rmx.c,v 1.11 2001/07/26 06:53:16 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 219 unchanged lines hidden (view full) ---

229}
230
231SYSCTL_DECL(_net_inet6_ip6);
232
233static int rtq_reallyold = 60*60;
234 /* one hour is ``really old'' */
235SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTEXPIRE, rtexpire,
236 CTLFLAG_RW, &rtq_reallyold , 0, "");
237
237
238static int rtq_minreallyold = 10;
239 /* never automatically crank down to less */
240SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMINEXPIRE, rtminexpire,
241 CTLFLAG_RW, &rtq_minreallyold , 0, "");
238static int rtq_minreallyold = 10;
239 /* never automatically crank down to less */
240SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMINEXPIRE, rtminexpire,
241 CTLFLAG_RW, &rtq_minreallyold , 0, "");
242
242
243static int rtq_toomany = 128;
244 /* 128 cached routes is ``too many'' */
245SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache,
246 CTLFLAG_RW, &rtq_toomany , 0, "");
243static int rtq_toomany = 128;
244 /* 128 cached routes is ``too many'' */
245SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache,
246 CTLFLAG_RW, &rtq_toomany , 0, "");
247
248
247
248
249/*
250 * On last reference drop, mark the route as belong to us so that it can be
251 * timed out.
252 */
253static void
254in6_clsroute(struct radix_node *rn, struct radix_node_head *head)
255{
256 struct rtentry *rt = (struct rtentry *)rn;

--- 234 unchanged lines hidden ---
249/*
250 * On last reference drop, mark the route as belong to us so that it can be
251 * timed out.
252 */
253static void
254in6_clsroute(struct radix_node *rn, struct radix_node_head *head)
255{
256 struct rtentry *rt = (struct rtentry *)rn;

--- 234 unchanged lines hidden ---