Subversion Repositories Kolibri OS

Rev

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

Rev 2924 Rev 2980
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: 2924 $
17
$Revision: 2980 $
Line 18... Line 18...
18
 
18
 
Line 272... Line 272...
272
; Checksum
272
; Checksum
273
        mov     esi, edi
273
        mov     esi, edi
274
        mov     [edi + UDP_header.Checksum], 0
274
        mov     [edi + UDP_header.Checksum], 0
275
        UDP_checksum (edi-4), (edi-8)                           ; FIXME: IPv4 packet could have options..
275
        UDP_checksum (edi-4), (edi-8)                           ; FIXME: IPv4 packet could have options..
Line 276... Line -...
276
 
-
 
277
        inc     [UDP_PACKETS_TX]                                ; FIXME: correct device?
-
 
278
 
276
 
279
        DEBUGF  1,"UDP_output: sending with device %x\n", ebx
277
        DEBUGF  1,"UDP_output: sending with device %x\n", ebx
-
 
278
        call    [ebx + NET_DEVICE.transmit]
-
 
279
        test    eax, eax
-
 
280
        jnz     @f
-
 
281
        inc     [UDP_PACKETS_TX]                                ; FIXME: correct device?
-
 
282
       @@:
280
        call    [ebx + NET_DEVICE.transmit]
283
 
Line 281... Line 284...
281
        ret
284
        ret
282
 
285
 
283
  .fail:
286
  .fail: