mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Make TCP_SACK compile with new netinet
This commit is contained in:
parent
34998d1db9
commit
063b6f8156
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tcp_input.c,v 1.24 1999/01/11 02:01:35 deraadt Exp $ */
|
||||
/* $OpenBSD: tcp_input.c,v 1.25 1999/01/11 15:05:32 niklas Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -2514,7 +2514,7 @@ tcp_sack_option(tp, th, cp, optlen)
|
||||
void
|
||||
tcp_del_sackholes(tp, th)
|
||||
struct tcpcb *tp;
|
||||
struct tcpiphdr *th;
|
||||
struct tcphdr *th;
|
||||
{
|
||||
if (!tp->sack_disable && tp->t_state != TCPS_LISTEN) {
|
||||
/* max because this could be an older ack just arrived */
|
||||
@ -2559,9 +2559,9 @@ tcp_clean_sackreport(tp)
|
||||
int
|
||||
tcp_sack_partialack(tp, th)
|
||||
struct tcpcb *tp;
|
||||
struct tcpiphdr *th;
|
||||
struct tcphdr *th;
|
||||
{
|
||||
if (SEQ_LT(th->ti_ack, tp->snd_last)) {
|
||||
if (SEQ_LT(th->th_ack, tp->snd_last)) {
|
||||
/* Turn off retx. timer (will start again next segment) */
|
||||
tp->t_timer[TCPT_REXMT] = 0;
|
||||
tp->t_rtt = 0;
|
||||
@ -2908,8 +2908,8 @@ tcp_mss(tp, offer)
|
||||
*/
|
||||
int
|
||||
tcp_newreno(tp, th)
|
||||
struct tcpcb *tp;
|
||||
struct tcphdr *th;
|
||||
struct tcpcb *tp;
|
||||
struct tcphdr *th;
|
||||
{
|
||||
if (SEQ_LT(th->th_ack, tp->snd_last)) {
|
||||
tcp_seq onxt = tp->snd_nxt;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tcp_var.h,v 1.15 1999/01/11 02:01:36 deraadt Exp $ */
|
||||
/* $OpenBSD: tcp_var.h,v 1.16 1999/01/11 15:05:32 niklas Exp $ */
|
||||
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -357,19 +357,19 @@ int tcp_usrreq __P((struct socket *,
|
||||
void tcp_xmit_timer __P((struct tcpcb *, int));
|
||||
void tcpdropoldhalfopen __P((struct tcpcb *, u_int16_t));
|
||||
#ifdef TCP_SACK
|
||||
int tcp_sack_option __P((struct tcpcb *,struct tcpiphdr *,u_char *,int));
|
||||
int tcp_sack_option __P((struct tcpcb *,struct tcphdr *,u_char *,int));
|
||||
void tcp_update_sack_list __P((struct tcpcb *tp));
|
||||
void tcp_del_sackholes __P((struct tcpcb *, struct tcpiphdr *));
|
||||
void tcp_del_sackholes __P((struct tcpcb *, struct tcphdr *));
|
||||
void tcp_clean_sackreport __P((struct tcpcb *tp));
|
||||
void tcp_sack_adjust __P((struct tcpcb *tp));
|
||||
struct sackhole * tcp_sack_output __P((struct tcpcb *tp));
|
||||
int tcp_sack_partialack __P((struct tcpcb *, struct tcpiphdr *));
|
||||
int tcp_sack_partialack __P((struct tcpcb *, struct tcphdr *));
|
||||
#ifdef DEBUG
|
||||
void tcp_print_holes __P((struct tcpcb *tp));
|
||||
#endif
|
||||
#endif /* TCP_SACK */
|
||||
#if defined(TCP_NEWRENO) || defined(TCP_SACK)
|
||||
int tcp_newreno __P((struct tcpcb *, struct tcpiphdr *));
|
||||
int tcp_newreno __P((struct tcpcb *, struct tcphdr *));
|
||||
u_long tcp_seq_subtract __P((u_long, u_long ));
|
||||
#endif /* TCP_NEWRENO || TCP_SACK */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user