Rev 1206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1206 | Rev 1208 | ||
---|---|---|---|
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: 1206 $ |
17 | $Revision: 1208 $ |
18 | 18 | ||
19 | align 4 |
19 | align 4 |
20 | struct SOCKET |
20 | struct SOCKET |
Line 720... | Line 720... | ||
720 | DEBUGF 1,"type: UDP, " |
720 | DEBUGF 1,"type: UDP, " |
Line 721... | Line 721... | ||
721 | 721 | ||
722 | cmp [eax + SOCKET.LocalPort],0 |
722 | cmp [eax + SOCKET.LocalPort],0 |
Line -... | Line 723... | ||
- | 723 | jne .port_ok |
|
723 | jne .port_ok |
724 | |
724 | 725 | push esi |
|
725 | mov ecx, [eax + SOCKET.Type] |
726 | mov ecx, [eax + SOCKET.Type] |
- | 727 | call socket_find_port |
|
726 | call socket_find_port |
728 | test bx, bx |
727 | test bx, bx |
729 | pop esi |
Line 728... | Line 730... | ||
728 | je s_error |
730 | je s_error |
Line 729... | Line 731... | ||
729 | mov [eax + SOCKET.LocalPort], bx |
731 | mov [eax + SOCKET.LocalPort], bx |
730 | 732 | ||
731 | .port_ok: |
733 | .port_ok: |
732 | 734 | ||
733 | mov ecx, esi |
735 | mov ecx, esi |
734 | mov esi, edx |
736 | mov esi, edx |
Line 735... | Line 737... | ||
735 | mov edx, dword [eax + SOCKET.LocalPort] ; load local port and remote port at once |
737 | mov edx, dword [eax + SOCKET.LocalPort] ; load local port and remote port at once |
Line 785... | Line 787... | ||
785 | ; |
787 | ; |
786 | ;----------------------------------------------- |
788 | ;----------------------------------------------- |
787 | align 4 |
789 | align 4 |
788 | socket_find_port: |
790 | socket_find_port: |
Line 789... | Line 791... | ||
789 | 791 | ||
Line 790... | Line 792... | ||
790 | DEBUGF 1,"Socket_find_free_port, type: %u ",eax |
792 | DEBUGF 1,"Socket_find_free_port\n" |
791 | 793 | ||
Line 792... | Line 794... | ||
792 | cmp ecx, IP_PROTO_UDP |
794 | cmp ecx, IP_PROTO_UDP |