forked from KolibriOS/kolibrios
Renamed zeroconfig.ini to network.ini and moved to /sys/
git-svn-id: svn://kolibrios.org@3516 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6bf8356208
commit
7a6a47ea05
@ -208,7 +208,7 @@ OTHER_FILES:=autorun.dat:AUTORUN.DAT \
|
||||
lib/msgbox.obj:LIB/MSGBOX.OBJ \
|
||||
lib/pixlib.obj:LIB/PIXLIB.OBJ lib/sort.obj:LIB/SORT.OBJ \
|
||||
media/ac97snd:MEDIA/AC97SND \
|
||||
network/zeroconf.ini:NETWORK/ZEROCONF.INI \
|
||||
network.ini:NETWORK.INI \
|
||||
network/ftpd.ini:NETWORK/FTPD.INI \
|
||||
network/users.ini:NETWORK/USERS.INI \
|
||||
#end of list
|
||||
|
@ -19,39 +19,39 @@
|
||||
format binary as ""
|
||||
|
||||
use32
|
||||
org 0x0
|
||||
org 0x0
|
||||
|
||||
db 'MENUET01' ; 8 byte id
|
||||
dd 0x01 ; header version
|
||||
dd START ; start of code
|
||||
dd IM_END ; size of image
|
||||
dd (I_END+0x100) ; memory for app
|
||||
dd (I_END+0x100) ; esp
|
||||
dd 0x0 , path ; I_Param , I_Icon
|
||||
db 'MENUET01' ; 8 byte id
|
||||
dd 0x01 ; header version
|
||||
dd START ; start of code
|
||||
dd IM_END ; size of image
|
||||
dd (I_END+0x100) ; memory for app
|
||||
dd (I_END+0x100) ; esp
|
||||
dd 0, 0 ; I_Param, I_Path
|
||||
|
||||
; CONFIGURATION
|
||||
|
||||
TIMEOUT equ 60 ; in seconds
|
||||
BUFFER equ 1024 ; in bytes
|
||||
__DEBUG__ equ 1 ; enable/disable
|
||||
__DEBUG_LEVEL__ equ 1 ; 1 = all, 2 = errors
|
||||
TIMEOUT = 60 ; in seconds
|
||||
BUFFER = 1024 ; in bytes
|
||||
__DEBUG__ = 1 ; enable/disable
|
||||
__DEBUG_LEVEL__ = 1 ; 1 = all, 2 = errors
|
||||
|
||||
; CONFIGURATION FOR LINK-LOCAL
|
||||
|
||||
PROBE_WAIT equ 1 ; second (initial random delay)
|
||||
PROBE_MIN equ 1 ; second (minimum delay till repeated probe)
|
||||
PROBE_MAX equ 2 ; seconds (maximum delay till repeated probe)
|
||||
PROBE_NUM equ 3 ; (number of probe packets)
|
||||
PROBE_WAIT = 1 ; second (initial random delay)
|
||||
PROBE_MIN = 1 ; second (minimum delay till repeated probe)
|
||||
PROBE_MAX = 2 ; seconds (maximum delay till repeated probe)
|
||||
PROBE_NUM = 3 ; (number of probe packets)
|
||||
|
||||
ANNOUNCE_NUM equ 2 ; (number of announcement packets)
|
||||
ANNOUNCE_INTERVAL equ 2 ; seconds (time between announcement packets)
|
||||
ANNOUNCE_WAIT equ 2 ; seconds (delay before announcing)
|
||||
ANNOUNCE_NUM = 2 ; (number of announcement packets)
|
||||
ANNOUNCE_INTERVAL = 2 ; seconds (time between announcement packets)
|
||||
ANNOUNCE_WAIT = 2 ; seconds (delay before announcing)
|
||||
|
||||
MAX_CONFLICTS equ 10 ; (max conflicts before rate limiting)
|
||||
MAX_CONFLICTS = 10 ; (max conflicts before rate limiting)
|
||||
|
||||
RATE_LIMIT_INTERVAL equ 60 ; seconds (delay between successive attempts)
|
||||
RATE_LIMIT_INTERVAL = 60 ; seconds (delay between successive attempts)
|
||||
|
||||
DEFEND_INTERVAL equ 10 ; seconds (min. wait between defensive ARPs)
|
||||
DEFEND_INTERVAL = 10 ; seconds (min. wait between defensive ARPs)
|
||||
|
||||
|
||||
include '../proc32.inc'
|
||||
@ -155,18 +155,6 @@ START:
|
||||
|
||||
mcall 40, EVM_STACK
|
||||
|
||||
mov edi, path ; Calculate the length of zero-terminated string
|
||||
xor al, al
|
||||
mov ecx, 1024
|
||||
repne scasb
|
||||
dec edi
|
||||
|
||||
mov esi, filename ; append with .ini
|
||||
movsd
|
||||
movsb
|
||||
|
||||
DEBUGF 1,"->Loading ini %s\n", path
|
||||
|
||||
mcall 68, 11
|
||||
|
||||
stdcall dll.Load,@IMPORT
|
||||
@ -577,7 +565,6 @@ import libini, \
|
||||
|
||||
include_debug_strings
|
||||
|
||||
filename db '.ini', 0
|
||||
str_ip db 'ip', 0
|
||||
str_subnet db 'subnet', 0
|
||||
str_gateway db 'gateway', 0
|
||||
@ -603,6 +590,7 @@ sockaddr2:
|
||||
|
||||
rb 10
|
||||
|
||||
path db '/sys/network.ini'
|
||||
|
||||
IM_END:
|
||||
|
||||
@ -629,10 +617,4 @@ generator dd ?
|
||||
|
||||
dhcpMsg dd ?
|
||||
|
||||
I_END_2:
|
||||
|
||||
path rb 1024+5
|
||||
|
||||
rb 65536
|
||||
|
||||
I_END:
|
Loading…
Reference in New Issue
Block a user