Subversion Repositories Kolibri OS

Rev

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

Rev 1254 Rev 1257
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: 1254 $
17
$Revision: 1257 $
18
 
18
 
19
 
19
 
Line 245... Line 245...
245
; Checksum for UDP header + data
245
; Checksum for UDP header + data
246
	xor	edx, edx
246
	xor	edx, edx
247
	mov	esi, edi
247
	mov	esi, edi
248
	call	checksum_1
248
	call	checksum_1
249
; Checksum for pseudoheader
249
; Checksum for pseudoheader
250
	pushd	[edi-4] ; destination address
250
	pushd	[edi-4] ; destination address        ; TODO: fix this, IPv4 packet could have options..
251
	pushd	[edi-8] ; source address
251
	pushd	[edi-8] ; source address
252
	mov	ecx, 12
252
	mov	ecx, 12
253
	mov	esi, esp
253
	mov	esi, esp
254
	call	checksum_1
254
	call	checksum_1
255
	add	esp, 12 					; remove the pseudoheader from stack
255
	add	esp, 12 					; remove the pseudoheader from stack