tcp_var.h revision 6472
11541Srgrimes/* 21541Srgrimes * Copyright (c) 1982, 1986, 1993, 1994 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * Redistribution and use in source and binary forms, with or without 61541Srgrimes * modification, are permitted provided that the following conditions 71541Srgrimes * are met: 81541Srgrimes * 1. Redistributions of source code must retain the above copyright 91541Srgrimes * notice, this list of conditions and the following disclaimer. 101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111541Srgrimes * notice, this list of conditions and the following disclaimer in the 121541Srgrimes * documentation and/or other materials provided with the distribution. 131541Srgrimes * 3. All advertising materials mentioning features or use of this software 141541Srgrimes * must display the following acknowledgement: 151541Srgrimes * This product includes software developed by the University of 161541Srgrimes * California, Berkeley and its contributors. 171541Srgrimes * 4. Neither the name of the University nor the names of its contributors 181541Srgrimes * may be used to endorse or promote products derived from this software 191541Srgrimes * without specific prior written permission. 201541Srgrimes * 211541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311541Srgrimes * SUCH DAMAGE. 321541Srgrimes * 331541Srgrimes * @(#)tcp_var.h 8.3 (Berkeley) 4/10/94 346472Swollman * $Id: tcp_var.h,v 1.7 1995/02/14 02:35:19 wollman Exp $ 351541Srgrimes */ 361541Srgrimes 372169Spaul#ifndef _NETINET_TCP_VAR_H_ 382169Spaul#define _NETINET_TCP_VAR_H_ 391541Srgrimes/* 401541Srgrimes * Kernel variables for tcp. 411541Srgrimes */ 421541Srgrimes 431541Srgrimes/* 441541Srgrimes * Tcp control block, one per tcp; fields: 451541Srgrimes */ 461541Srgrimesstruct tcpcb { 471541Srgrimes struct tcpiphdr *seg_next; /* sequencing queue */ 481541Srgrimes struct tcpiphdr *seg_prev; 491541Srgrimes short t_state; /* state of this connection */ 501541Srgrimes short t_timer[TCPT_NTIMERS]; /* tcp timers */ 511541Srgrimes short t_rxtshift; /* log(2) of rexmt exp. backoff */ 521541Srgrimes short t_rxtcur; /* current retransmit value */ 531541Srgrimes short t_dupacks; /* consecutive dup acks recd */ 541541Srgrimes u_short t_maxseg; /* maximum segment size */ 556247Swollman u_short t_maxopd; /* mss plus options */ 561541Srgrimes char t_force; /* 1 if forcing out a byte */ 571541Srgrimes u_short t_flags; 581541Srgrimes#define TF_ACKNOW 0x0001 /* ack peer immediately */ 591541Srgrimes#define TF_DELACK 0x0002 /* ack, but try to delay it */ 601541Srgrimes#define TF_NODELAY 0x0004 /* don't delay packets to coalesce */ 611541Srgrimes#define TF_NOOPT 0x0008 /* don't use tcp options */ 621541Srgrimes#define TF_SENTFIN 0x0010 /* have sent FIN */ 631541Srgrimes#define TF_REQ_SCALE 0x0020 /* have/will request window scaling */ 641541Srgrimes#define TF_RCVD_SCALE 0x0040 /* other side has requested scaling */ 651541Srgrimes#define TF_REQ_TSTMP 0x0080 /* have/will request timestamps */ 661541Srgrimes#define TF_RCVD_TSTMP 0x0100 /* a timestamp was received in SYN */ 671541Srgrimes#define TF_SACK_PERMIT 0x0200 /* other side said I could SACK */ 686247Swollman#define TF_NEEDSYN 0x0400 /* send SYN (implicit state) */ 696247Swollman#define TF_NEEDFIN 0x0800 /* send FIN (implicit state) */ 706247Swollman#define TF_NOPUSH 0x1000 /* don't push */ 716247Swollman#define TF_REQ_CC 0x2000 /* have/will request CC */ 726247Swollman#define TF_RCVD_CC 0x4000 /* a CC was received in SYN */ 731541Srgrimes 741541Srgrimes struct tcpiphdr *t_template; /* skeletal packet for transmit */ 751541Srgrimes struct inpcb *t_inpcb; /* back pointer to internet pcb */ 761541Srgrimes/* 771541Srgrimes * The following fields are used as in the protocol specification. 781541Srgrimes * See RFC783, Dec. 1981, page 21. 791541Srgrimes */ 801541Srgrimes/* send sequence variables */ 811541Srgrimes tcp_seq snd_una; /* send unacknowledged */ 821541Srgrimes tcp_seq snd_nxt; /* send next */ 831541Srgrimes tcp_seq snd_up; /* send urgent pointer */ 841541Srgrimes tcp_seq snd_wl1; /* window update seg seq number */ 851541Srgrimes tcp_seq snd_wl2; /* window update seg ack number */ 861541Srgrimes tcp_seq iss; /* initial send sequence number */ 871541Srgrimes u_long snd_wnd; /* send window */ 881541Srgrimes/* receive sequence variables */ 891541Srgrimes u_long rcv_wnd; /* receive window */ 901541Srgrimes tcp_seq rcv_nxt; /* receive next */ 911541Srgrimes tcp_seq rcv_up; /* receive urgent pointer */ 921541Srgrimes tcp_seq irs; /* initial receive sequence number */ 931541Srgrimes/* 941541Srgrimes * Additional variables for this implementation. 951541Srgrimes */ 961541Srgrimes/* receive variables */ 971541Srgrimes tcp_seq rcv_adv; /* advertised window */ 981541Srgrimes/* retransmit variables */ 991541Srgrimes tcp_seq snd_max; /* highest sequence number sent; 1001541Srgrimes * used to recognize retransmits 1011541Srgrimes */ 1021541Srgrimes/* congestion control (for slow start, source quench, retransmit after loss) */ 1031541Srgrimes u_long snd_cwnd; /* congestion-controlled window */ 1041541Srgrimes u_long snd_ssthresh; /* snd_cwnd size threshhold for 1051541Srgrimes * for slow start exponential to 1061541Srgrimes * linear switch 1071541Srgrimes */ 1081541Srgrimes/* 1091541Srgrimes * transmit timing stuff. See below for scale of srtt and rttvar. 1101541Srgrimes * "Variance" is actually smoothed difference. 1111541Srgrimes */ 1121541Srgrimes short t_idle; /* inactivity time */ 1131541Srgrimes short t_rtt; /* round trip time */ 1141541Srgrimes tcp_seq t_rtseq; /* sequence number being timed */ 1151541Srgrimes short t_srtt; /* smoothed round-trip time */ 1161541Srgrimes short t_rttvar; /* variance in round-trip time */ 1171541Srgrimes u_short t_rttmin; /* minimum rtt allowed */ 1181541Srgrimes u_long max_sndwnd; /* largest window peer has offered */ 1191541Srgrimes 1201541Srgrimes/* out-of-band data */ 1211541Srgrimes char t_oobflags; /* have some */ 1221541Srgrimes char t_iobc; /* input character */ 1231541Srgrimes#define TCPOOB_HAVEDATA 0x01 1241541Srgrimes#define TCPOOB_HADDATA 0x02 1251541Srgrimes short t_softerror; /* possible error not yet reported */ 1261541Srgrimes 1271541Srgrimes/* RFC 1323 variables */ 1281541Srgrimes u_char snd_scale; /* window scaling for send window */ 1291541Srgrimes u_char rcv_scale; /* window scaling for recv window */ 1301541Srgrimes u_char request_r_scale; /* pending window scaling */ 1311541Srgrimes u_char requested_s_scale; 1321541Srgrimes u_long ts_recent; /* timestamp echo data */ 1331541Srgrimes u_long ts_recent_age; /* when last updated */ 1341541Srgrimes tcp_seq last_ack_sent; 1356247Swollman/* RFC 1644 variables */ 1366247Swollman tcp_cc cc_send; /* send connection count */ 1376247Swollman tcp_cc cc_recv; /* receive connection count */ 1386247Swollman u_long t_duration; /* connection duration */ 1391541Srgrimes 1401541Srgrimes/* TUBA stuff */ 1411541Srgrimes caddr_t t_tuba_pcb; /* next level down pcb for TCP over z */ 1421541Srgrimes}; 1431541Srgrimes 1446247Swollman/* 1456247Swollman * Structure to hold TCP options that are only used during segment 1466247Swollman * processing (in tcp_input), but not held in the tcpcb. 1476247Swollman * It's basically used to reduce the number of parameters 1486247Swollman * to tcp_dooptions. 1496247Swollman */ 1506247Swollmanstruct tcpopt { 1516247Swollman u_long to_flag; /* which options are present */ 1526247Swollman#define TOF_TS 0x0001 /* timestamp */ 1536247Swollman#define TOF_CC 0x0002 /* CC and CCnew are exclusive */ 1546247Swollman#define TOF_CCNEW 0x0004 1556247Swollman#define TOF_CCECHO 0x0008 1566247Swollman u_long to_tsval; 1576247Swollman u_long to_tsecr; 1586247Swollman tcp_cc to_cc; /* holds CC or CCnew */ 1596247Swollman tcp_cc to_ccecho; 1606247Swollman}; 1616247Swollman 1626247Swollman/* 1636247Swollman * The TAO cache entry which is stored in the protocol family specific 1646247Swollman * portion of the route metrics. 1656247Swollman */ 1666247Swollmanstruct rmxp_tao { 1676247Swollman tcp_cc tao_cc; /* latest CC in valid SYN */ 1686247Swollman tcp_cc tao_ccsent; /* latest CC sent to peer */ 1696247Swollman u_short tao_mssopt; /* peer's cached MSS */ 1706247Swollman#ifdef notyet 1716247Swollman u_short tao_flags; /* cache status flags */ 1726247Swollman#define TAOF_DONT 0x0001 /* peer doesn't understand rfc1644 */ 1736247Swollman#define TAOF_OK 0x0002 /* peer does understand rfc1644 */ 1746247Swollman#define TAOF_UNDEF 0 /* we don't know yet */ 1756247Swollman#endif /* notyet */ 1766247Swollman}; 1776283Swollman#define rmx_taop(r) ((struct rmxp_tao *)(r).rmx_filler) 1786247Swollman 1791541Srgrimes#define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb) 1801541Srgrimes#define sototcpcb(so) (intotcpcb(sotoinpcb(so))) 1811541Srgrimes 1821541Srgrimes/* 1831541Srgrimes * The smoothed round-trip time and estimated variance 1841541Srgrimes * are stored as fixed point numbers scaled by the values below. 1851541Srgrimes * For convenience, these scales are also used in smoothing the average 1861541Srgrimes * (smoothed = (1/scale)sample + ((scale-1)/scale)smoothed). 1871541Srgrimes * With these scales, srtt has 3 bits to the right of the binary point, 1881541Srgrimes * and thus an "ALPHA" of 0.875. rttvar has 2 bits to the right of the 1891541Srgrimes * binary point, and is smoothed with an ALPHA of 0.75. 1901541Srgrimes */ 1911541Srgrimes#define TCP_RTT_SCALE 8 /* multiplier for srtt; 3 bits frac. */ 1921541Srgrimes#define TCP_RTT_SHIFT 3 /* shift for srtt; 3 bits frac. */ 1931541Srgrimes#define TCP_RTTVAR_SCALE 4 /* multiplier for rttvar; 2 bits */ 1946247Swollman#define TCP_RTTVAR_SHIFT 2 /* shift for rttvar; 2 bits */ 1951541Srgrimes 1961541Srgrimes/* 1971541Srgrimes * The initial retransmission should happen at rtt + 4 * rttvar. 1981541Srgrimes * Because of the way we do the smoothing, srtt and rttvar 1991541Srgrimes * will each average +1/2 tick of bias. When we compute 2001541Srgrimes * the retransmit timer, we want 1/2 tick of rounding and 2011541Srgrimes * 1 extra tick because of +-1/2 tick uncertainty in the 2021541Srgrimes * firing of the timer. The bias will give us exactly the 2031541Srgrimes * 1.5 tick we need. But, because the bias is 2041541Srgrimes * statistical, we have to test that we don't drop below 2051541Srgrimes * the minimum feasible timer (which is 2 ticks). 2061541Srgrimes * This macro assumes that the value of TCP_RTTVAR_SCALE 2071541Srgrimes * is the same as the multiplier for rttvar. 2081541Srgrimes */ 2091541Srgrimes#define TCP_REXMTVAL(tp) \ 2101541Srgrimes (((tp)->t_srtt >> TCP_RTT_SHIFT) + (tp)->t_rttvar) 2111541Srgrimes 2121541Srgrimes/* XXX 2131541Srgrimes * We want to avoid doing m_pullup on incoming packets but that 2141541Srgrimes * means avoiding dtom on the tcp reassembly code. That in turn means 2151541Srgrimes * keeping an mbuf pointer in the reassembly queue (since we might 2161541Srgrimes * have a cluster). As a quick hack, the source & destination 2171541Srgrimes * port numbers (which are no longer needed once we've located the 2181541Srgrimes * tcpcb) are overlayed with an mbuf pointer. 2191541Srgrimes */ 2201541Srgrimes#define REASS_MBUF(ti) (*(struct mbuf **)&((ti)->ti_t)) 2211541Srgrimes 2221541Srgrimes/* 2231541Srgrimes * TCP statistics. 2241541Srgrimes * Many of these should be kept per connection, 2251541Srgrimes * but that's inconvenient at the moment. 2261541Srgrimes */ 2271541Srgrimesstruct tcpstat { 2281541Srgrimes u_long tcps_connattempt; /* connections initiated */ 2291541Srgrimes u_long tcps_accepts; /* connections accepted */ 2301541Srgrimes u_long tcps_connects; /* connections established */ 2311541Srgrimes u_long tcps_drops; /* connections dropped */ 2321541Srgrimes u_long tcps_conndrops; /* embryonic connections dropped */ 2331541Srgrimes u_long tcps_closed; /* conn. closed (includes drops) */ 2341541Srgrimes u_long tcps_segstimed; /* segs where we tried to get rtt */ 2351541Srgrimes u_long tcps_rttupdated; /* times we succeeded */ 2361541Srgrimes u_long tcps_delack; /* delayed acks sent */ 2371541Srgrimes u_long tcps_timeoutdrop; /* conn. dropped in rxmt timeout */ 2381541Srgrimes u_long tcps_rexmttimeo; /* retransmit timeouts */ 2391541Srgrimes u_long tcps_persisttimeo; /* persist timeouts */ 2401541Srgrimes u_long tcps_keeptimeo; /* keepalive timeouts */ 2411541Srgrimes u_long tcps_keepprobe; /* keepalive probes sent */ 2421541Srgrimes u_long tcps_keepdrops; /* connections dropped in keepalive */ 2431541Srgrimes 2441541Srgrimes u_long tcps_sndtotal; /* total packets sent */ 2451541Srgrimes u_long tcps_sndpack; /* data packets sent */ 2461541Srgrimes u_long tcps_sndbyte; /* data bytes sent */ 2471541Srgrimes u_long tcps_sndrexmitpack; /* data packets retransmitted */ 2481541Srgrimes u_long tcps_sndrexmitbyte; /* data bytes retransmitted */ 2491541Srgrimes u_long tcps_sndacks; /* ack-only packets sent */ 2501541Srgrimes u_long tcps_sndprobe; /* window probes sent */ 2511541Srgrimes u_long tcps_sndurg; /* packets sent with URG only */ 2521541Srgrimes u_long tcps_sndwinup; /* window update-only packets sent */ 2531541Srgrimes u_long tcps_sndctrl; /* control (SYN|FIN|RST) packets sent */ 2541541Srgrimes 2551541Srgrimes u_long tcps_rcvtotal; /* total packets received */ 2561541Srgrimes u_long tcps_rcvpack; /* packets received in sequence */ 2571541Srgrimes u_long tcps_rcvbyte; /* bytes received in sequence */ 2581541Srgrimes u_long tcps_rcvbadsum; /* packets received with ccksum errs */ 2591541Srgrimes u_long tcps_rcvbadoff; /* packets received with bad offset */ 2601541Srgrimes u_long tcps_rcvshort; /* packets received too short */ 2611541Srgrimes u_long tcps_rcvduppack; /* duplicate-only packets received */ 2621541Srgrimes u_long tcps_rcvdupbyte; /* duplicate-only bytes received */ 2631541Srgrimes u_long tcps_rcvpartduppack; /* packets with some duplicate data */ 2641541Srgrimes u_long tcps_rcvpartdupbyte; /* dup. bytes in part-dup. packets */ 2651541Srgrimes u_long tcps_rcvoopack; /* out-of-order packets received */ 2661541Srgrimes u_long tcps_rcvoobyte; /* out-of-order bytes received */ 2671541Srgrimes u_long tcps_rcvpackafterwin; /* packets with data after window */ 2681541Srgrimes u_long tcps_rcvbyteafterwin; /* bytes rcvd after window */ 2691541Srgrimes u_long tcps_rcvafterclose; /* packets rcvd after "close" */ 2701541Srgrimes u_long tcps_rcvwinprobe; /* rcvd window probe packets */ 2711541Srgrimes u_long tcps_rcvdupack; /* rcvd duplicate acks */ 2721541Srgrimes u_long tcps_rcvacktoomuch; /* rcvd acks for unsent data */ 2731541Srgrimes u_long tcps_rcvackpack; /* rcvd ack packets */ 2741541Srgrimes u_long tcps_rcvackbyte; /* bytes acked by rcvd acks */ 2751541Srgrimes u_long tcps_rcvwinupd; /* rcvd window update packets */ 2761541Srgrimes u_long tcps_pawsdrop; /* segments dropped due to PAWS */ 2771541Srgrimes u_long tcps_predack; /* times hdr predict ok for acks */ 2781541Srgrimes u_long tcps_preddat; /* times hdr predict ok for data pkts */ 2791541Srgrimes u_long tcps_pcbcachemiss; 2801541Srgrimes}; 2811541Srgrimes 2826247Swollman/* 2836247Swollman * Names for TCP sysctl objects 2846247Swollman */ 2856247Swollman#define TCPCTL_DO_RFC1323 1 /* use RFC-1323 extensions */ 2866247Swollman#define TCPCTL_DO_RFC1644 2 /* use RFC-1644 extensions */ 2876247Swollman#define TCPCTL_MSSDFLT 3 /* MSS default */ 2886472Swollman#define TCPCTL_STATS 4 /* statistics (read-only) */ 2896472Swollman#define TCPCTL_RTTDFLT 5 /* default RTT estimate */ 2906472Swollman#define TCPCTL_KEEPIDLE 6 /* keepalive idle timer */ 2916472Swollman#define TCPCTL_KEEPINTVL 7 /* interval to send keepalives */ 2926472Swollman#define TCPCTL_SENDSPACE 8 /* send buffer space */ 2936472Swollman#define TCPCTL_RECVSPACE 9 /* receive buffer space */ 2946472Swollman#define TCPCTL_MAXID 10 2956247Swollman 2966247Swollman#define TCPCTL_NAMES { \ 2976247Swollman { 0, 0 }, \ 2986348Swollman { "rfc1323", CTLTYPE_INT }, \ 2996348Swollman { "rfc1644", CTLTYPE_INT }, \ 3006247Swollman { "mssdflt", CTLTYPE_INT }, \ 3016472Swollman { "stats", CTLTYPE_STRUCT }, \ 3026472Swollman { "rttdflt", CTLTYPE_INT }, \ 3036472Swollman { "keepidle", CTLTYPE_INT }, \ 3046472Swollman { "keepintvl", CTLTYPE_INT }, \ 3056472Swollman { "sendspace", CTLTYPE_INT }, \ 3066472Swollman { "recvspace", CTLTYPE_INT }, \ 3076247Swollman} 3086247Swollman 3091541Srgrimes#ifdef KERNEL 3106348Swollmanextern struct inpcb tcb; /* head of queue of active tcpcb's */ 3116348Swollmanextern struct tcpstat tcpstat; /* tcp statistics */ 3126348Swollmanextern u_long tcp_now; /* for RFC 1323 timestamps */ 3131541Srgrimes 3141541Srgrimesint tcp_attach __P((struct socket *)); 3151541Srgrimesvoid tcp_canceltimers __P((struct tcpcb *)); 3161541Srgrimesstruct tcpcb * 3171541Srgrimes tcp_close __P((struct tcpcb *)); 3186247Swollmanint tcp_connect __P((struct tcpcb *, struct mbuf *)); 3191541Srgrimesvoid tcp_ctlinput __P((int, struct sockaddr *, struct ip *)); 3201541Srgrimesint tcp_ctloutput __P((int, struct socket *, int, int, struct mbuf **)); 3211541Srgrimesstruct tcpcb * 3221541Srgrimes tcp_disconnect __P((struct tcpcb *)); 3231541Srgrimesstruct tcpcb * 3241541Srgrimes tcp_drop __P((struct tcpcb *, int)); 3256247Swollman#ifdef TTCP 3261541Srgrimesvoid tcp_dooptions __P((struct tcpcb *, 3276247Swollman u_char *, int, struct tcpiphdr *, struct tcpopt *)); 3286247Swollman#else 3296247Swollmanvoid tcp_dooptions __P((struct tcpcb *, 3301541Srgrimes u_char *, int, struct tcpiphdr *, int *, u_long *, u_long *)); 3316247Swollman#endif 3321541Srgrimesvoid tcp_drain __P((void)); 3331541Srgrimesvoid tcp_fasttimo __P((void)); 3346247Swollmanstruct rmxp_tao * 3356247Swollman tcp_gettaocache __P((struct inpcb *)); 3361541Srgrimesvoid tcp_init __P((void)); 3371541Srgrimesvoid tcp_input __P((struct mbuf *, int)); 3386247Swollmanvoid tcp_mss __P((struct tcpcb *, int)); 3396247Swollmanint tcp_mssopt __P((struct tcpcb *)); 3401541Srgrimesstruct tcpcb * 3411541Srgrimes tcp_newtcpcb __P((struct inpcb *)); 3421541Srgrimesvoid tcp_notify __P((struct inpcb *, int)); 3431541Srgrimesint tcp_output __P((struct tcpcb *)); 3441541Srgrimesvoid tcp_pulloutofband __P((struct socket *, 3451541Srgrimes struct tcpiphdr *, struct mbuf *)); 3461541Srgrimesvoid tcp_quench __P((struct inpcb *, int)); 3471541Srgrimesint tcp_reass __P((struct tcpcb *, struct tcpiphdr *, struct mbuf *)); 3481541Srgrimesvoid tcp_respond __P((struct tcpcb *, 3491541Srgrimes struct tcpiphdr *, struct mbuf *, u_long, u_long, int)); 3506247Swollmanstruct rtentry * 3516247Swollman tcp_rtlookup __P((struct inpcb *)); 3521541Srgrimesvoid tcp_setpersist __P((struct tcpcb *)); 3531541Srgrimesvoid tcp_slowtimo __P((void)); 3546247Swollmanint tcp_sysctl __P((int *, u_int, void *, size_t *, void *, size_t)); 3551541Srgrimesstruct tcpiphdr * 3561541Srgrimes tcp_template __P((struct tcpcb *)); 3571541Srgrimesstruct tcpcb * 3581541Srgrimes tcp_timers __P((struct tcpcb *, int)); 3591541Srgrimesvoid tcp_trace __P((int, int, struct tcpcb *, struct tcpiphdr *, int)); 3601541Srgrimesstruct tcpcb * 3611541Srgrimes tcp_usrclosed __P((struct tcpcb *)); 3621541Srgrimesint tcp_usrreq __P((struct socket *, 3631541Srgrimes int, struct mbuf *, struct mbuf *, struct mbuf *)); 3641541Srgrimesvoid tcp_xmit_timer __P((struct tcpcb *, int)); 3656348Swollman#endif /* KERNEL */ 3662169Spaul 3676348Swollman#endif /* _NETINET_TCP_VAR_H_ */ 368