Rev 9715 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9715 | Rev 9977 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | ;------------------------------------------------------------------------- |
8 | ;------------------------------------------------------------------------- |
9 | ;Loading configuration from ini file |
9 | ;Loading configuration from ini file |
10 | ; {SPraid.simba} |
10 | ; {SPraid.simba} |
11 | ;------------------------------------------------------------------------- |
11 | ;------------------------------------------------------------------------- |
Line 12... | Line 12... | ||
12 | 12 | ||
Line 13... | Line 13... | ||
13 | $Revision: 9715 $ |
13 | $Revision: 9977 $ |
14 | 14 | ||
15 | iglobal |
15 | iglobal |
Line 16... | Line 16... | ||
16 | conf_path_sect: |
16 | conf_path_sect: |
17 | db 'path',0 |
17 | db 'path',0 |
18 | 18 | ||
19 | conf_fname db '/sys/sys.conf',0 |
19 | conf_fname db '/sys/sys.conf',0 |
20 | endg |
20 | endg |
21 | ; set soke kernel configuration |
21 | ; set kernel configuration |
22 | proc set_kernel_conf |
22 | proc set_kernel_conf |
Line 86... | Line 86... | ||
86 | unet_mask db 'mask',0 |
86 | unet_mask db 'mask',0 |
87 | unet_gate db 'gate',0 |
87 | unet_gate db 'gate',0 |
88 | end if |
88 | end if |
89 | unet_def db 0 |
89 | unet_def db 0 |
90 | endg |
90 | endg |
91 | ; convert string to DWord |
91 | ; convert string to dword |
92 | proc strtoint stdcall,strs |
92 | proc strtoint stdcall,strs |
93 | pushad |
93 | pushad |
Line 94... | Line 94... | ||
94 | 94 | ||
95 | mov eax, [strs] |
95 | mov eax, [strs] |
Line 111... | Line 111... | ||
111 | mov [esp+28], eax |
111 | mov [esp+28], eax |
112 | popad |
112 | popad |
113 | ret |
113 | ret |
114 | endp |
114 | endp |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | ; convert string to DWord for decimal value |
116 | ; convert string to dword for decimal value |
117 | proc strtoint_dec stdcall,strs |
117 | proc strtoint_dec stdcall,strs |
118 | pushad |
118 | pushad |
119 | xor edx, edx |
119 | xor edx, edx |
120 | ; поиск конца |
120 | ; search for the end |
121 | mov esi, [strs] |
121 | mov esi, [strs] |
122 | @@: |
122 | @@: |
123 | lodsb |
123 | lodsb |
124 | or al, al |
124 | or al, al |
Line 131... | Line 131... | ||
131 | 131 | ||
132 | @@: |
132 | @@: |
133 | dec ebx |
133 | dec ebx |
134 | or ebx, ebx |
134 | or ebx, ebx |
135 | jz @f |
135 | jz @f |
136 | imul ecx, ecx, 10; порядок |
136 | imul ecx, ecx, 10 ; order |
137 | jmp @b |
137 | jmp @b |
138 | @@: |
- | |
139 | 138 | @@: |
|
Line 140... | Line -... | ||
140 | xchg ebx, ecx |
- | |
141 | 139 | xchg ebx, ecx |
|
Line 142... | Line -... | ||
142 | - | ||
143 | xor ecx, ecx |
140 | |
144 | 141 | xor ecx, ecx |
|
145 | 142 | ||
146 | @@: |
143 | @@: |
147 | xor eax, eax |
144 | xor eax, eax |
Line 164... | Line 161... | ||
164 | mov [esp+28], ecx |
161 | mov [esp+28], ecx |
165 | popad |
162 | popad |
166 | ret |
163 | ret |
167 | endp |
164 | endp |
Line 168... | Line 165... | ||
168 | 165 | ||
169 | ;convert string to DWord for hex value |
166 | ; convert string to dword for hex value |
170 | proc strtoint_hex stdcall,strs |
167 | proc strtoint_hex stdcall, strs |
171 | pushad |
168 | pushad |
Line 172... | Line 169... | ||
172 | xor edx, edx |
169 | xor edx, edx |
Line 219... | Line 216... | ||
219 | popad |
216 | popad |
220 | ret |
217 | ret |
221 | endp |
218 | endp |
Line 222... | Line 219... | ||
222 | 219 | ||
223 | 220 | ||
224 | ; convert string to DWord for IP addres |
221 | ; convert string to dword for IP address |
Line 225... | Line 222... | ||
225 | proc do_inet_adr stdcall,strs |
222 | proc do_inet_adr stdcall, strs |
226 | pushad |
223 | pushad |
227 | 224 | ||
228 | mov esi, [strs] |
225 | mov esi, [strs] |
229 | mov ebx, 0 |
226 | xor ebx, ebx |
230 | .next: |
227 | .next: |
231 | push esi |
228 | push esi |