Subversion Repositories Kolibri OS

Rev

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

Rev 5013 Rev 5015
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2014. 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: 5013 $
17
$Revision: 5015 $
18
 
18
 
19
; Socket states
19
; Socket states
20
TCPS_CLOSED             = 0
20
TCPS_CLOSED             = 0
Line 271... Line 271...
271
        jz      .packets_rx     ; 1
271
        jz      .packets_rx     ; 1
272
        dec     bl
272
        dec     bl
273
        jz      .packets_missed ; 2
273
        jz      .packets_missed ; 2
274
        dec     bl
274
        dec     bl
275
        jz      .packets_dumped ; 3
275
        jz      .packets_dumped ; 3
-
 
276
        dec     bl
-
 
277
        jz      .packets_queued ; 4
Line 276... Line 278...
276
 
278
 
277
  .error:
279
  .error:
278
        mov     eax, -1
280
        mov     eax, -1
Line 291... Line 293...
291
        ret
293
        ret
Line 292... Line 294...
292
 
294
 
293
  .packets_dumped:
295
  .packets_dumped:
294
        mov     eax, [TCP_segments_dumped + eax]
296
        mov     eax, [TCP_segments_dumped + eax]
-
 
297
        ret
-
 
298
 
-
 
299
  .packets_queued:
-
 
300
        mov     eax, [TCP_queue + queue.size]