Subversion Repositories Kolibri OS

Rev

Rev 6011 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6011 Rev 6476
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
Line 12... Line 12...
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
13
;;             Version 2, June 1991                                ;;
13
;;             Version 2, June 1991                                ;;
14
;;                                                                 ;;
14
;;                                                                 ;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
$Revision: 6011 $
17
$Revision: 6476 $
18
 
18
 
19
; Socket states
19
; Socket states
20
TCPS_CLOSED             = 0
20
TCPS_CLOSED             = 0
Line 25... Line 25...
25
TCPS_CLOSE_WAIT         = 5
25
TCPS_CLOSE_WAIT         = 5
26
TCPS_FIN_WAIT_1         = 6
26
TCPS_FIN_WAIT_1         = 6
27
TCPS_CLOSING            = 7
27
TCPS_CLOSING            = 7
28
TCPS_LAST_ACK           = 8
28
TCPS_LAST_ACK           = 8
29
TCPS_FIN_WAIT_2         = 9
29
TCPS_FIN_WAIT_2         = 9
30
TCPS_TIMED_WAIT         = 10
30
TCPS_TIME_WAIT          = 10
Line 31... Line 31...
31
 
31
 
32
; Socket Flags
32
; Socket Flags
33
TF_ACKNOW               = 1 shl 0     ; ack peer immediately
33
TF_ACKNOW               = 1 shl 0     ; ack peer immediately
34
TF_DELACK               = 1 shl 1     ; ack, but try to delay it
34
TF_DELACK               = 1 shl 1     ; ack, but try to delay it
Line 90... Line 90...
90
; With these scales, srtt has 3 bits to the right of the binary point, and thus an "alpha"
90
; With these scales, srtt has 3 bits to the right of the binary point, and thus an "alpha"
91
; of .875. rttvar has 2 bits to the right and thus "alpha" of 0.75
91
; of .875. rttvar has 2 bits to the right and thus "alpha" of 0.75
92
TCP_RTT_SHIFT           = 3
92
TCP_RTT_SHIFT           = 3
93
TCP_RTTVAR_SHIFT        = 2
93
TCP_RTTVAR_SHIFT        = 2
Line 94... Line -...
94
 
-
 
95
; bits used by tcp_input and tcp_output
-
 
96
TCP_BIT_NEEDOUTPUT      = 1 shl 0
-
 
97
TCP_BIT_TIMESTAMP       = 1 shl 1
-
 
98
TCP_BIT_DROPSOCKET      = 1 shl 2
-
 
99
TCP_BIT_FIN_IS_ACKED    = 1 shl 3
-
 
100
 
-
 
101
TCP_BIT_SENDALOT        = 1 shl 0
-
 
102
 
94
 
Line 103... Line 95...
103
TCP_PAWS_IDLE           = 24*24*60*60*100       ; 24 days, in 1/100 seconds
95
TCP_PAWS_IDLE           = 24*24*60*60*100       ; 24 days, in 1/100 seconds
Line -... Line 96...
-
 
96
 
-
 
97
TCP_QUEUE_SIZE          = 50
104
 
98
 
Line 105... Line 99...
105
TCP_QUEUE_SIZE          = 50
99
TCP_ISSINCR             = 128000
106
 
100
 
107
struct  TCP_header
101
struct  TCP_header