tcp_timewait.c revision 16367
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
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 *    must display the following acknowledgement:
15 *	This product includes software developed by the University of
16 *	California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 *    may be used to endorse or promote products derived from this software
19 *    without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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_subr.c	8.2 (Berkeley) 5/24/95
34 *	$Id: tcp_subr.c,v 1.29 1996/06/05 16:57:37 wollman Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/queue.h>
39#include <sys/proc.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/sysctl.h>
43#include <sys/malloc.h>
44#include <sys/mbuf.h>
45#include <sys/socket.h>
46#include <sys/socketvar.h>
47#include <sys/protosw.h>
48#include <sys/errno.h>
49
50#include <net/route.h>
51#include <net/if.h>
52
53#include <netinet/in.h>
54#include <netinet/in_systm.h>
55#include <netinet/ip.h>
56#include <netinet/in_pcb.h>
57#include <netinet/in_var.h>
58#include <netinet/ip_var.h>
59#include <netinet/ip_icmp.h>
60#include <netinet/tcp.h>
61#include <netinet/tcp_fsm.h>
62#include <netinet/tcp_seq.h>
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
70int 	tcp_mssdflt = TCP_MSS;
71SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt,
72	CTLFLAG_RW, &tcp_mssdflt , 0, "");
73
74static int 	tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ;
75SYSCTL_INT(_net_inet_tcp, TCPCTL_RTTDFLT, rttdflt,
76	CTLFLAG_RW, &tcp_rttdflt , 0, "");
77
78static int	tcp_do_rfc1323 = 1;
79SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323,
80	CTLFLAG_RW, &tcp_do_rfc1323 , 0, "");
81
82static int	tcp_do_rfc1644 = 1;
83SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1644, rfc1644,
84	CTLFLAG_RW, &tcp_do_rfc1644 , 0, "");
85
86static void	tcp_cleartaocache(void);
87static void	tcp_notify __P((struct inpcb *, int));
88
89/*
90 * Target size of TCP PCB hash table. Will be rounded down to a prime
91 * number.
92 */
93#ifndef TCBHASHSIZE
94#define TCBHASHSIZE	128
95#endif
96
97/*
98 * Tcp initialization
99 */
100void
101tcp_init()
102{
103
104	tcp_iss = random();	/* wrong, but better than a constant */
105	tcp_ccgen = 1;
106	tcp_cleartaocache();
107	LIST_INIT(&tcb);
108	tcbinfo.listhead = &tcb;
109	tcbinfo.hashbase = phashinit(TCBHASHSIZE, M_PCB, &tcbinfo.hashsize);
110	if (max_protohdr < sizeof(struct tcpiphdr))
111		max_protohdr = sizeof(struct tcpiphdr);
112	if (max_linkhdr + sizeof(struct tcpiphdr) > MHLEN)
113		panic("tcp_init");
114}
115
116/*
117 * Create template to be used to send tcp packets on a connection.
118 * Call after host entry created, allocates an mbuf and fills
119 * in a skeletal tcp/ip header, minimizing the amount of work
120 * necessary when the connection is used.
121 */
122struct tcpiphdr *
123tcp_template(tp)
124	struct tcpcb *tp;
125{
126	register struct inpcb *inp = tp->t_inpcb;
127	register struct mbuf *m;
128	register struct tcpiphdr *n;
129
130	if ((n = tp->t_template) == 0) {
131		m = m_get(M_DONTWAIT, MT_HEADER);
132		if (m == NULL)
133			return (0);
134		m->m_len = sizeof (struct tcpiphdr);
135		n = mtod(m, struct tcpiphdr *);
136	}
137	n->ti_next = n->ti_prev = 0;
138	n->ti_x1 = 0;
139	n->ti_pr = IPPROTO_TCP;
140	n->ti_len = htons(sizeof (struct tcpiphdr) - sizeof (struct ip));
141	n->ti_src = inp->inp_laddr;
142	n->ti_dst = inp->inp_faddr;
143	n->ti_sport = inp->inp_lport;
144	n->ti_dport = inp->inp_fport;
145	n->ti_seq = 0;
146	n->ti_ack = 0;
147	n->ti_x2 = 0;
148	n->ti_off = 5;
149	n->ti_flags = 0;
150	n->ti_win = 0;
151	n->ti_sum = 0;
152	n->ti_urp = 0;
153	return (n);
154}
155
156/*
157 * Send a single message to the TCP at address specified by
158 * the given TCP/IP header.  If m == 0, then we make a copy
159 * of the tcpiphdr at ti and send directly to the addressed host.
160 * This is used to force keep alive messages out using the TCP
161 * template for a connection tp->t_template.  If flags are given
162 * then we send a message back to the TCP which originated the
163 * segment ti, and discard the mbuf containing it and any other
164 * attached mbufs.
165 *
166 * In any case the ack and sequence number of the transmitted
167 * segment are as specified by the parameters.
168 */
169void
170tcp_respond(tp, ti, m, ack, seq, flags)
171	struct tcpcb *tp;
172	register struct tcpiphdr *ti;
173	register struct mbuf *m;
174	tcp_seq ack, seq;
175	int flags;
176{
177	register int tlen;
178	int win = 0;
179	struct route *ro = 0;
180	struct route sro;
181
182	if (tp) {
183		win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
184		ro = &tp->t_inpcb->inp_route;
185	} else {
186		ro = &sro;
187		bzero(ro, sizeof *ro);
188	}
189	if (m == 0) {
190		m = m_gethdr(M_DONTWAIT, MT_HEADER);
191		if (m == NULL)
192			return;
193#ifdef TCP_COMPAT_42
194		tlen = 1;
195#else
196		tlen = 0;
197#endif
198		m->m_data += max_linkhdr;
199		*mtod(m, struct tcpiphdr *) = *ti;
200		ti = mtod(m, struct tcpiphdr *);
201		flags = TH_ACK;
202	} else {
203		m_freem(m->m_next);
204		m->m_next = 0;
205		m->m_data = (caddr_t)ti;
206		m->m_len = sizeof (struct tcpiphdr);
207		tlen = 0;
208#define xchg(a,b,type) { type t; t=a; a=b; b=t; }
209		xchg(ti->ti_dst.s_addr, ti->ti_src.s_addr, u_long);
210		xchg(ti->ti_dport, ti->ti_sport, u_short);
211#undef xchg
212	}
213	ti->ti_len = htons((u_short)(sizeof (struct tcphdr) + tlen));
214	tlen += sizeof (struct tcpiphdr);
215	m->m_len = tlen;
216	m->m_pkthdr.len = tlen;
217	m->m_pkthdr.rcvif = (struct ifnet *) 0;
218	ti->ti_next = ti->ti_prev = 0;
219	ti->ti_x1 = 0;
220	ti->ti_seq = htonl(seq);
221	ti->ti_ack = htonl(ack);
222	ti->ti_x2 = 0;
223	ti->ti_off = sizeof (struct tcphdr) >> 2;
224	ti->ti_flags = flags;
225	if (tp)
226		ti->ti_win = htons((u_short) (win >> tp->rcv_scale));
227	else
228		ti->ti_win = htons((u_short)win);
229	ti->ti_urp = 0;
230	ti->ti_sum = 0;
231	ti->ti_sum = in_cksum(m, tlen);
232	((struct ip *)ti)->ip_len = tlen;
233	((struct ip *)ti)->ip_ttl = ip_defttl;
234#ifdef TCPDEBUG
235	if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
236		tcp_trace(TA_OUTPUT, 0, tp, ti, 0);
237#endif
238	(void) ip_output(m, NULL, ro, 0, NULL);
239	if (ro == &sro && ro->ro_rt) {
240		RTFREE(ro->ro_rt);
241	}
242}
243
244/*
245 * Create a new TCP control block, making an
246 * empty reassembly queue and hooking it to the argument
247 * protocol control block.
248 */
249struct tcpcb *
250tcp_newtcpcb(inp)
251	struct inpcb *inp;
252{
253	register struct tcpcb *tp;
254
255	tp = malloc(sizeof(*tp), M_PCB, M_NOWAIT);
256	if (tp == NULL)
257		return ((struct tcpcb *)0);
258	bzero((char *) tp, sizeof(struct tcpcb));
259	tp->seg_next = tp->seg_prev = (struct tcpiphdr *)tp;
260	tp->t_maxseg = tp->t_maxopd = tcp_mssdflt;
261
262	if (tcp_do_rfc1323)
263		tp->t_flags = (TF_REQ_SCALE|TF_REQ_TSTMP);
264	if (tcp_do_rfc1644)
265		tp->t_flags |= TF_REQ_CC;
266	tp->t_inpcb = inp;
267	/*
268	 * Init srtt to TCPTV_SRTTBASE (0), so we can tell that we have no
269	 * rtt estimate.  Set rttvar so that srtt + 4 * rttvar gives
270	 * reasonable initial retransmit time.
271	 */
272	tp->t_srtt = TCPTV_SRTTBASE;
273	tp->t_rttvar = ((TCPTV_RTOBASE - TCPTV_SRTTBASE) << TCP_RTTVAR_SHIFT) / 4;
274	tp->t_rttmin = TCPTV_MIN;
275	tp->t_rxtcur = TCPTV_RTOBASE;
276	tp->snd_cwnd = TCP_MAXWIN << TCP_MAX_WINSHIFT;
277	tp->snd_ssthresh = TCP_MAXWIN << TCP_MAX_WINSHIFT;
278	inp->inp_ip.ip_ttl = ip_defttl;
279	inp->inp_ppcb = (caddr_t)tp;
280	return (tp);
281}
282
283/*
284 * Drop a TCP connection, reporting
285 * the specified error.  If connection is synchronized,
286 * then send a RST to peer.
287 */
288struct tcpcb *
289tcp_drop(tp, errno)
290	register struct tcpcb *tp;
291	int errno;
292{
293	struct socket *so = tp->t_inpcb->inp_socket;
294
295	if (TCPS_HAVERCVDSYN(tp->t_state)) {
296		tp->t_state = TCPS_CLOSED;
297		(void) tcp_output(tp);
298		tcpstat.tcps_drops++;
299	} else
300		tcpstat.tcps_conndrops++;
301	if (errno == ETIMEDOUT && tp->t_softerror)
302		errno = tp->t_softerror;
303	so->so_error = errno;
304	return (tcp_close(tp));
305}
306
307/*
308 * Close a TCP control block:
309 *	discard all space held by the tcp
310 *	discard internet protocol block
311 *	wake up any sleepers
312 */
313struct tcpcb *
314tcp_close(tp)
315	register struct tcpcb *tp;
316{
317	register struct tcpiphdr *t;
318	struct inpcb *inp = tp->t_inpcb;
319	struct socket *so = inp->inp_socket;
320	register struct mbuf *m;
321	register struct rtentry *rt;
322
323	/*
324	 * If we got enough samples through the srtt filter,
325	 * save the rtt and rttvar in the routing entry.
326	 * 'Enough' is arbitrarily defined as the 16 samples.
327	 * 16 samples is enough for the srtt filter to converge
328	 * to within 5% of the correct value; fewer samples and
329	 * we could save a very bogus rtt.
330	 *
331	 * Don't update the default route's characteristics and don't
332	 * update anything that the user "locked".
333	 */
334	if (tp->t_rttupdated >= 16 &&
335	    (rt = inp->inp_route.ro_rt) &&
336	    ((struct sockaddr_in *)rt_key(rt))->sin_addr.s_addr != INADDR_ANY) {
337		register u_long i = 0;
338
339		if ((rt->rt_rmx.rmx_locks & RTV_RTT) == 0) {
340			i = tp->t_srtt *
341			    (RTM_RTTUNIT / (PR_SLOWHZ * TCP_RTT_SCALE));
342			if (rt->rt_rmx.rmx_rtt && i)
343				/*
344				 * filter this update to half the old & half
345				 * the new values, converting scale.
346				 * See route.h and tcp_var.h for a
347				 * description of the scaling constants.
348				 */
349				rt->rt_rmx.rmx_rtt =
350				    (rt->rt_rmx.rmx_rtt + i) / 2;
351			else
352				rt->rt_rmx.rmx_rtt = i;
353			tcpstat.tcps_cachedrtt++;
354		}
355		if ((rt->rt_rmx.rmx_locks & RTV_RTTVAR) == 0) {
356			i = tp->t_rttvar *
357			    (RTM_RTTUNIT / (PR_SLOWHZ * TCP_RTTVAR_SCALE));
358			if (rt->rt_rmx.rmx_rttvar && i)
359				rt->rt_rmx.rmx_rttvar =
360				    (rt->rt_rmx.rmx_rttvar + i) / 2;
361			else
362				rt->rt_rmx.rmx_rttvar = i;
363			tcpstat.tcps_cachedrttvar++;
364		}
365		/*
366		 * update the pipelimit (ssthresh) if it has been updated
367		 * already or if a pipesize was specified & the threshhold
368		 * got below half the pipesize.  I.e., wait for bad news
369		 * before we start updating, then update on both good
370		 * and bad news.
371		 */
372		if (((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 &&
373		    ((i = tp->snd_ssthresh) != 0) && rt->rt_rmx.rmx_ssthresh) ||
374		    i < (rt->rt_rmx.rmx_sendpipe / 2)) {
375			/*
376			 * convert the limit from user data bytes to
377			 * packets then to packet data bytes.
378			 */
379			i = (i + tp->t_maxseg / 2) / tp->t_maxseg;
380			if (i < 2)
381				i = 2;
382			i *= (u_long)(tp->t_maxseg + sizeof (struct tcpiphdr));
383			if (rt->rt_rmx.rmx_ssthresh)
384				rt->rt_rmx.rmx_ssthresh =
385				    (rt->rt_rmx.rmx_ssthresh + i) / 2;
386			else
387				rt->rt_rmx.rmx_ssthresh = i;
388			tcpstat.tcps_cachedssthresh++;
389		}
390	}
391	/* free the reassembly queue, if any */
392	t = tp->seg_next;
393	while (t != (struct tcpiphdr *)tp) {
394		t = (struct tcpiphdr *)t->ti_next;
395		m = REASS_MBUF((struct tcpiphdr *)t->ti_prev);
396		remque(t->ti_prev);
397		m_freem(m);
398	}
399	if (tp->t_template)
400		(void) m_free(dtom(tp->t_template));
401	free(tp, M_PCB);
402	inp->inp_ppcb = 0;
403	soisdisconnected(so);
404	in_pcbdetach(inp);
405	tcpstat.tcps_closed++;
406	return ((struct tcpcb *)0);
407}
408
409void
410tcp_drain()
411{
412
413}
414
415/*
416 * Notify a tcp user of an asynchronous error;
417 * store error as soft error, but wake up user
418 * (for now, won't do anything until can select for soft error).
419 */
420static void
421tcp_notify(inp, error)
422	struct inpcb *inp;
423	int error;
424{
425	register struct tcpcb *tp = (struct tcpcb *)inp->inp_ppcb;
426	register struct socket *so = inp->inp_socket;
427
428	/*
429	 * Ignore some errors if we are hooked up.
430	 * If connection hasn't completed, has retransmitted several times,
431	 * and receives a second error, give up now.  This is better
432	 * than waiting a long time to establish a connection that
433	 * can never complete.
434	 */
435	if (tp->t_state == TCPS_ESTABLISHED &&
436	     (error == EHOSTUNREACH || error == ENETUNREACH ||
437	      error == EHOSTDOWN)) {
438		return;
439	} else if (tp->t_state < TCPS_ESTABLISHED && tp->t_rxtshift > 3 &&
440	    tp->t_softerror)
441		so->so_error = error;
442	else
443		tp->t_softerror = error;
444	wakeup((caddr_t) &so->so_timeo);
445	sorwakeup(so);
446	sowwakeup(so);
447}
448
449void
450tcp_ctlinput(cmd, sa, vip)
451	int cmd;
452	struct sockaddr *sa;
453	void *vip;
454{
455	register struct ip *ip = vip;
456	register struct tcphdr *th;
457	void (*notify) __P((struct inpcb *, int)) = tcp_notify;
458
459	if (cmd == PRC_QUENCH)
460		notify = tcp_quench;
461#if 1
462	else if (cmd == PRC_MSGSIZE)
463		notify = tcp_mtudisc;
464#endif
465	else if (!PRC_IS_REDIRECT(cmd) &&
466		 ((unsigned)cmd > PRC_NCMDS || inetctlerrmap[cmd] == 0))
467		return;
468	if (ip) {
469		th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
470		in_pcbnotify(&tcb, sa, th->th_dport, ip->ip_src, th->th_sport,
471			cmd, notify);
472	} else
473		in_pcbnotify(&tcb, sa, 0, zeroin_addr, 0, cmd, notify);
474}
475
476/*
477 * When a source quench is received, close congestion window
478 * to one segment.  We will gradually open it again as we proceed.
479 */
480void
481tcp_quench(inp, errno)
482	struct inpcb *inp;
483	int errno;
484{
485	struct tcpcb *tp = intotcpcb(inp);
486
487	if (tp)
488		tp->snd_cwnd = tp->t_maxseg;
489}
490
491#if 1
492/*
493 * When `need fragmentation' ICMP is received, update our idea of the MSS
494 * based on the new value in the route.  Also nudge TCP to send something,
495 * since we know the packet we just sent was dropped.
496 * This duplicates some code in the tcp_mss() function in tcp_input.c.
497 */
498void
499tcp_mtudisc(inp, errno)
500	struct inpcb *inp;
501	int errno;
502{
503	struct tcpcb *tp = intotcpcb(inp);
504	struct rtentry *rt;
505	struct rmxp_tao *taop;
506	struct socket *so = inp->inp_socket;
507	int offered;
508	int mss;
509
510	if (tp) {
511		rt = tcp_rtlookup(inp);
512		if (!rt || !rt->rt_rmx.rmx_mtu) {
513			tp->t_maxopd = tp->t_maxseg = tcp_mssdflt;
514			return;
515		}
516		taop = rmx_taop(rt->rt_rmx);
517		offered = taop->tao_mssopt;
518		mss = rt->rt_rmx.rmx_mtu - sizeof(struct tcpiphdr);
519		if (offered)
520			mss = min(mss, offered);
521		/*
522		 * XXX - The above conditional probably violates the TCP
523		 * spec.  The problem is that, since we don't know the
524		 * other end's MSS, we are supposed to use a conservative
525		 * default.  But, if we do that, then MTU discovery will
526		 * never actually take place, because the conservative
527		 * default is much less than the MTUs typically seen
528		 * on the Internet today.  For the moment, we'll sweep
529		 * this under the carpet.
530		 *
531		 * The conservative default might not actually be a problem
532		 * if the only case this occurs is when sending an initial
533		 * SYN with options and data to a host we've never talked
534		 * to before.  Then, they will reply with an MSS value which
535		 * will get recorded and the new parameters should get
536		 * recomputed.  For Further Study.
537		 */
538		if (tp->t_maxopd <= mss)
539			return;
540		tp->t_maxopd = mss;
541
542		if ((tp->t_flags & (TF_REQ_TSTMP|TF_NOOPT)) == TF_REQ_TSTMP &&
543		    (tp->t_flags & TF_RCVD_TSTMP) == TF_RCVD_TSTMP)
544			mss -= TCPOLEN_TSTAMP_APPA;
545		if ((tp->t_flags & (TF_REQ_CC|TF_NOOPT)) == TF_REQ_CC &&
546		    (tp->t_flags & TF_RCVD_CC) == TF_RCVD_CC)
547			mss -= TCPOLEN_CC_APPA;
548#if	(MCLBYTES & (MCLBYTES - 1)) == 0
549		if (mss > MCLBYTES)
550			mss &= ~(MCLBYTES-1);
551#else
552		if (mss > MCLBYTES)
553			mss = mss / MCLBYTES * MCLBYTES;
554#endif
555		if (so->so_snd.sb_hiwat < mss)
556			mss = so->so_snd.sb_hiwat;
557
558		tp->t_maxseg = mss;
559
560		tcpstat.tcps_mturesent++;
561		tp->t_rtt = 0;
562		tp->snd_nxt = tp->snd_una;
563		tcp_output(tp);
564	}
565}
566#endif
567
568/*
569 * Look-up the routing entry to the peer of this inpcb.  If no route
570 * is found and it cannot be allocated the return NULL.  This routine
571 * is called by TCP routines that access the rmx structure and by tcp_mss
572 * to get the interface MTU.
573 */
574struct rtentry *
575tcp_rtlookup(inp)
576	struct inpcb *inp;
577{
578	struct route *ro;
579	struct rtentry *rt;
580
581	ro = &inp->inp_route;
582	rt = ro->ro_rt;
583	if (rt == NULL || !(rt->rt_flags & RTF_UP)) {
584		/* No route yet, so try to acquire one */
585		if (inp->inp_faddr.s_addr != INADDR_ANY) {
586			ro->ro_dst.sa_family = AF_INET;
587			ro->ro_dst.sa_len = sizeof(ro->ro_dst);
588			((struct sockaddr_in *) &ro->ro_dst)->sin_addr =
589				inp->inp_faddr;
590			rtalloc(ro);
591			rt = ro->ro_rt;
592		}
593	}
594	return rt;
595}
596
597/*
598 * Return a pointer to the cached information about the remote host.
599 * The cached information is stored in the protocol specific part of
600 * the route metrics.
601 */
602struct rmxp_tao *
603tcp_gettaocache(inp)
604	struct inpcb *inp;
605{
606	struct rtentry *rt = tcp_rtlookup(inp);
607
608	/* Make sure this is a host route and is up. */
609	if (rt == NULL ||
610	    (rt->rt_flags & (RTF_UP|RTF_HOST)) != (RTF_UP|RTF_HOST))
611		return NULL;
612
613	return rmx_taop(rt->rt_rmx);
614}
615
616/*
617 * Clear all the TAO cache entries, called from tcp_init.
618 *
619 * XXX
620 * This routine is just an empty one, because we assume that the routing
621 * routing tables are initialized at the same time when TCP, so there is
622 * nothing in the cache left over.
623 */
624static void
625tcp_cleartaocache(void)
626{ }
627