/*
* Copyright (c) 2003 Joacim H�ggmark, Magnus Erixzon, Nils-Erik Mattsson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Id: dccp_var.h,v 1.25 2003/07/31 11:17:15 joahag-9 Exp
*/
dccp_seq seq_snd;
dccp_seq ack_snd; /* ack num to send in Ack or DataAck packet */
dccp_seq gsn_rcv; /* Greatest received sequence number */
/* values representing last incoming packet. are set in dccp_input */
dccp_seq seq_rcv; /* Seq num of received packet */
dccp_seq ack_rcv; /* Ack num received in Ack or DataAck packet */
u_int8_t type_rcv; /* Type of packet received */
u_int32_t len_rcv; /* Length of data received */
u_int8_t ndp_rcv; /* ndp value of received packet */
u_int8_t cslen; /* How much of outgoing packets are covered by the checksum */
u_int8_t pref_cc; /* Client preferred CC */
u_int8_t ndp; /* Number of non data packets */
u_int32_t loss_window; /* Loss window (defaults to 1000) */
u_int16_t ack_ratio; /* Ack Ratio Feature */
int8_t cc_in_use[2]; /* Current CC in use
(in each direction) */
void *cc_state[2];
struct inpcb *d_inpcb; /* Pointer back to Internet PCB */
u_int32_t d_maxseg; /* Maximum segment size */
char options[DCCP_MAX_OPTIONS];
u_int8_t optlen;
char features[DCCP_MAX_OPTIONS];
u_int8_t featlen;
u_int8_t ccval; /* ccval */
u_int32_t avgpsize; /* Average packet size */
/* variables for the local (receiver-side) ack vector */
u_char *ackvector; /* For acks, 2 bits per packet */
u_char *av_hp; /* head ptr for ackvector */
u_int16_t av_size;
dccp_seq av_hs, av_ts; /* highest/lowest seq no in ackvector */
u_int8_t remote_ackvector; /* Is recv side using AckVector? */
u_char shortseq; /* use short seq number */
u_int32_t scode; /* service core */
struct ref_seq ref_seq; /* reference sequence number */
struct ref_seq ref_pseq; /* reference peer sequence number */