```   1: /*
2:  * Copyright (c) 1982, 1986 Regents of the University of California.
4:  * specifies the terms and conditions for redistribution.
5:  *
6:  *	@(#)tcp_seq.h	7.1 (Berkeley) 6/5/86
7:  */
8:
9: /*
10:  * TCP sequence numbers are 32 bit integers operated
11:  * on with modular arithmetic.  These macros can be
12:  * used to compare such integers.
13:  */
14: #define SEQ_LT(a,b) ((int)((a)-(b)) < 0)
15: #define SEQ_LEQ(a,b)    ((int)((a)-(b)) <= 0)
16: #define SEQ_GT(a,b) ((int)((a)-(b)) > 0)
17: #define SEQ_GEQ(a,b)    ((int)((a)-(b)) >= 0)
18:
19: /*
20:  * Macros to initialize tcp sequence numbers for
22:  * sequence numbers.
23:  */
24: #define tcp_rcvseqinit(tp) \
25:     (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1
26:
27: #define tcp_sendseqinit(tp) \
28:     (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \
29:         (tp)->iss
30:
31: #define TCP_ISSINCR (125*1024)  /* increment for tcp_iss each second */
32:
33: #ifdef KERNEL
34: tcp_seq tcp_iss;        /* tcp initial send seq # */
35: #endif
```

#### Defined macros

SEQ_GEQ defined in line 17; never used
SEQ_GT defined in line 16; used 14 times
SEQ_LEQ defined in line 15; used 2 times
SEQ_LT defined in line 14; used 7 times
tcp_rcvseqinit defined in line 24; used 2 times

#### Usage of this include

 Last modified: 1986-06-05 Generated: 2016-12-26 Generated by src2html V0.67 page hit count: 1131