Rev 2877 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2877 | Rev 2890 | ||
---|---|---|---|
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: 2877 $ |
17 | $Revision: 2890 $ |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 233... | Line 233... | ||
233 | UDP_output: |
233 | UDP_output: |
Line 234... | Line 234... | ||
234 | 234 | ||
Line 235... | Line 235... | ||
235 | DEBUGF 1,"UDP_output: socket:%x, bytes: %u, data ptr: %x\n", eax, ecx, esi |
235 | DEBUGF 1,"UDP_output: socket:%x, bytes: %u, data ptr: %x\n", eax, ecx, esi |
236 | 236 | ||
237 | mov dx, [eax + UDP_SOCKET.RemotePort] |
237 | mov dx, [eax + UDP_SOCKET.RemotePort] |
238 | DEBUGF 1,"remote port: %u\n", dx |
238 | DEBUGF 1,"UDP_output: remote port: %u, ", dx |
239 | rol dx, 8 |
239 | rol dx, 8 |
240 | rol edx, 16 |
240 | rol edx, 16 |
241 | mov dx, [eax + UDP_SOCKET.LocalPort] |
241 | mov dx, [eax + UDP_SOCKET.LocalPort] |
Line 271... | Line 271... | ||
271 | pop dword [edi + UDP_header.SourcePort] |
271 | pop dword [edi + UDP_header.SourcePort] |
Line 272... | Line 272... | ||
272 | 272 | ||
273 | ; Checksum |
273 | ; Checksum |
274 | mov esi, edi |
274 | mov esi, edi |
275 | mov [edi + UDP_header.Checksum], 0 |
275 | mov [edi + UDP_header.Checksum], 0 |
Line 276... | Line 276... | ||
276 | UDP_checksum (edi-4), (edi-8) ; TODO: fix this, IPv4 packet could have options.. |
276 | UDP_checksum (edi-4), (edi-8) ; FIXME: IPv4 packet could have options.. |
Line 277... | Line 277... | ||
277 | 277 | ||
Line 278... | Line 278... | ||
278 | inc [UDP_PACKETS_TX] |
278 | inc [UDP_PACKETS_TX] ; FIXME: correct device? |
279 | 279 | ||
Line 280... | Line 280... | ||
280 | DEBUGF 1,"Sending UDP Packet to device %x\n", ebx |
280 | DEBUGF 1,"UDP_output: sending to device %x\n", ebx |