Subversion Repositories Kolibri OS

Rev

Rev 914 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 914 Rev 2971
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
-
 
5
;;                                                              ;;
-
 
6
;;                                                              ;;
-
 
7
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
-
 
8
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
9
;;                                                              ;;
5
;;                                                              ;;
10
;;                                                              ;;
6
;;                                                              ;;
11
;;  UDP.INC                                                     ;;
7
;;  UDP.INC                                                     ;;
12
;;                                                              ;;
8
;;                                                              ;;
13
;;  UDP Processes for Menuet OS  TCP/IP stack                   ;;
9
;;  UDP Processes for Menuet OS  TCP/IP stack                   ;;
14
;;                                                              ;;
10
;;                                                              ;;
15
;;  Version 0.3  29 August 2002                                 ;;
-
 
16
;;                                                              ;;
-
 
17
;;  Copyright 2002 Mike Hibbett, mikeh@oceanfree.net            ;;
11
;;  Copyright 2002 Mike Hibbett, mikeh@oceanfree.net            ;;
18
;;                                                              ;;
12
;;                                                              ;;
19
;;  See file COPYING for details                                ;;
13
;;  See file COPYING for details                                ;;
20
;;                                                              ;;
14
;;                                                              ;;
21
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 22... Line 16...
22
 
16
 
Line 23... Line 17...
23
$Revision: 914 $
17
$Revision: 2971 $
24
 
18
 
25
 
19
 
Line 100... Line 94...
100
    ; 255.255.255.255
94
    ; 255.255.255.255
101
	cmp	[ebx + SOCKET.RemoteIP], 0xffffffff
95
	cmp	[ebx + SOCKET.RemoteIP], 0xffffffff
102
	je	@f
96
	je	@f
Line 103... Line 97...
103
 
97
 
104
	mov	eax, [edx + IP_PACKET.SourceAddress]	; get the Source address from the IP packet
98
	mov	eax, [edx + IP_PACKET.SourceAddress]	; get the Source address from the IP packet
105
	cmp	[ebx + SOCKET.RemoteIP], ebx
99
	cmp	[ebx + SOCKET.RemoteIP], eax
Line 106... Line 100...
106
	jne	.exit		   ; Quit if the source IP is not valid
100
	jne	.exit		   ; Quit if the source IP is not valid
107
 
101
 
108
    @@: ; OK - we have a valid UDP packet for this socket.
102
    @@: ; OK - we have a valid UDP packet for this socket.