Deleted Added
full compact
tcp_seq.h (109175) tcp_seq.h (117650)
1/*
2 * Copyright (c) 1982, 1986, 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

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

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_seq.h 8.3 (Berkeley) 6/21/95
1/*
2 * Copyright (c) 1982, 1986, 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

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

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_seq.h 8.3 (Berkeley) 6/21/95
34 * $FreeBSD: head/sys/netinet/tcp_seq.h 109175 2003-01-13 11:01:20Z hsu $
34 * $FreeBSD: head/sys/netinet/tcp_seq.h 117650 2003-07-15 21:49:53Z hsu $
35 */
36
37#ifndef _NETINET_TCP_SEQ_H_
38#define _NETINET_TCP_SEQ_H_
39/*
40 * TCP sequence numbers are 32 bit integers operated
41 * on with modular arithmetic. These macros can be
42 * used to compare such integers.

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

68 * send and receive from initial send and receive
69 * sequence numbers.
70 */
71#define tcp_rcvseqinit(tp) \
72 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
73
74#define tcp_sendseqinit(tp) \
75 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \
35 */
36
37#ifndef _NETINET_TCP_SEQ_H_
38#define _NETINET_TCP_SEQ_H_
39/*
40 * TCP sequence numbers are 32 bit integers operated
41 * on with modular arithmetic. These macros can be
42 * used to compare such integers.

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

68 * send and receive from initial send and receive
69 * sequence numbers.
70 */
71#define tcp_rcvseqinit(tp) \
72 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
73
74#define tcp_sendseqinit(tp) \
75 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \
76 (tp)->snd_recover = (tp)->snd_high = (tp)->iss
76 (tp)->snd_recover = (tp)->iss
77
78#define TCP_PAWS_IDLE (24 * 24 * 60 * 60 * hz)
79 /* timestamp wrap-around time */
80
81#ifdef _KERNEL
82extern tcp_cc tcp_ccgen; /* global connection count */
83#endif /* _KERNEL */
84#endif /* _NETINET_TCP_SEQ_H_ */
77
78#define TCP_PAWS_IDLE (24 * 24 * 60 * 60 * hz)
79 /* timestamp wrap-around time */
80
81#ifdef _KERNEL
82extern tcp_cc tcp_ccgen; /* global connection count */
83#endif /* _KERNEL */
84#endif /* _NETINET_TCP_SEQ_H_ */