From 7a6a47ea05474a9bc6d2edd3a1fdf31660756986 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 17 May 2013 12:22:14 +0000 Subject: [PATCH] Renamed zeroconfig.ini to network.ini and moved to /sys/ git-svn-id: svn://kolibrios.org@3516 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/new-stack/Makefile | 2 +- .../{network/zeroconf.ini => network.ini} | 0 .../zeroconf/{zeroconf.ini => network.ini} | 0 .../net/applications/zeroconf/zeroconf.asm | 64 +++++++------------ 4 files changed, 24 insertions(+), 42 deletions(-) rename data/new-stack/{network/zeroconf.ini => network.ini} (100%) rename kernel/branches/net/applications/zeroconf/{zeroconf.ini => network.ini} (100%) diff --git a/data/new-stack/Makefile b/data/new-stack/Makefile index 8d77560e91..fe32db9491 100644 --- a/data/new-stack/Makefile +++ b/data/new-stack/Makefile @@ -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 diff --git a/data/new-stack/network/zeroconf.ini b/data/new-stack/network.ini similarity index 100% rename from data/new-stack/network/zeroconf.ini rename to data/new-stack/network.ini diff --git a/kernel/branches/net/applications/zeroconf/zeroconf.ini b/kernel/branches/net/applications/zeroconf/network.ini similarity index 100% rename from kernel/branches/net/applications/zeroconf/zeroconf.ini rename to kernel/branches/net/applications/zeroconf/network.ini diff --git a/kernel/branches/net/applications/zeroconf/zeroconf.asm b/kernel/branches/net/applications/zeroconf/zeroconf.asm index ff09b666d0..3fde8df43b 100644 --- a/kernel/branches/net/applications/zeroconf/zeroconf.asm +++ b/kernel/branches/net/applications/zeroconf/zeroconf.asm @@ -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: \ No newline at end of file