Rev 2310 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2310 | Rev 2311 | ||
---|---|---|---|
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: 2310 $ |
17 | $Revision: 2311 $ |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 170... | Line 170... | ||
170 | cmp [eax + IP_SOCKET.RemoteIP], edi |
170 | cmp [eax + IP_SOCKET.RemoteIP], edi |
171 | jne .next_socket |
171 | jne .next_socket |
172 | @@: |
172 | @@: |
Line 173... | Line 173... | ||
173 | 173 | ||
174 | cmp [eax + UDP_SOCKET.firstpacket], 0 |
174 | cmp [eax + UDP_SOCKET.firstpacket], 0 |
Line 175... | Line 175... | ||
175 | jz .updateport |
175 | je .updateport |
176 | 176 | ||
Line 177... | Line 177... | ||
177 | cmp [eax + UDP_SOCKET.RemotePort], cx |
177 | cmp [eax + UDP_SOCKET.RemotePort], cx |
Line 195... | Line 195... | ||
195 | push ebx |
195 | push ebx |
196 | lea ebx, [eax + SOCKET.lock] |
196 | lea ebx, [eax + SOCKET.lock] |
197 | call wait_mutex |
197 | call wait_mutex |
198 | pop ebx |
198 | pop ebx |
Line 199... | Line -... | ||
199 | - | ||
200 | mov si, [edx + UDP_header.SourcePort] |
199 | |
201 | DEBUGF 1,"Changing remote port to: %u\n", si |
200 | DEBUGF 1,"Changing remote port to: %u\n", cx |
202 | mov [eax + UDP_SOCKET.RemotePort], si |
201 | mov [eax + UDP_SOCKET.RemotePort], cx |
Line 203... | Line 202... | ||
203 | inc [eax + UDP_SOCKET.firstpacket] |
202 | inc [eax + UDP_SOCKET.firstpacket] |
Line 321... | Line 320... | ||
321 | .error: |
320 | .error: |
322 | mov eax, -1 |
321 | mov eax, -1 |
323 | ret |
322 | ret |
Line 324... | Line 323... | ||
324 | 323 | ||
325 | .packets_tx: |
324 | .packets_tx: |
326 | add eax, UDP_PACKETS_TX |
- | |
327 | mov eax, [eax] |
325 | mov eax, [UDP_PACKETS_TX + eax] |
Line 328... | Line 326... | ||
328 | ret |
326 | ret |
329 | 327 | ||
330 | .packets_rx: |
- | |
331 | add eax, UDP_PACKETS_RX |
328 | .packets_rx: |