Rev 2955 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2955 | Rev 2995 | ||
---|---|---|---|
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: 2955 $ |
17 | $Revision: 2995 $ |
18 | 18 | ||
19 | align 4 |
19 | align 4 |
20 | iglobal |
20 | iglobal |
Line 346... | Line 346... | ||
346 | 346 | ||
347 | ;----------------------------------------------- |
347 | ;----------------------------------------------- |
Line 348... | Line 348... | ||
348 | ; Fill in the TCP header by using the socket ptr |
348 | ; Fill in the TCP header by using the socket ptr |
349 | - | ||
350 | mov ax, [esi + TCP_SOCKET.LocalPort] |
349 | |
351 | rol ax, 8 |
350 | mov ax, [esi + TCP_SOCKET.LocalPort] |
352 | stosw |
- | |
353 | mov ax, [esi + TCP_SOCKET.RemotePort] |
351 | stosw |
354 | rol ax, 8 |
352 | mov ax, [esi + TCP_SOCKET.RemotePort] |
355 | stosw |
353 | stosw |
356 | mov eax, [esi + TCP_SOCKET.SND_NXT] |
354 | mov eax, [esi + TCP_SOCKET.SND_NXT] |
357 | bswap eax |
355 | bswap eax |
Line 427... | Line 425... | ||
427 | 425 | ||
428 | ;--------------------------------------------------- |
426 | ;--------------------------------------------------- |
Line 429... | Line 427... | ||
429 | ; Fill in the TCP header by using a received segment |
427 | ; Fill in the TCP header by using a received segment |
430 | - | ||
431 | mov ax, [esi + TCP_header.DestinationPort] |
428 | |
432 | rol ax, 8 |
429 | mov ax, [esi + TCP_header.DestinationPort] |
433 | stosw |
- | |
434 | mov ax, [esi + TCP_header.SourcePort] |
430 | stosw |
435 | rol ax, 8 |
431 | mov ax, [esi + TCP_header.SourcePort] |
436 | stosw |
432 | stosw |
437 | mov eax, [esi + TCP_header.AckNumber] |
433 | mov eax, [esi + TCP_header.AckNumber] |
438 | bswap eax |
434 | bswap eax |