Jump to content











Photo
- - - - -

Problems parsing IP address information from INI file

ini parsing

  • Please log in to reply
3 replies to this topic

#1 mike-d

mike-d
  • Members
  • 2 posts
  •  
    United States

Posted 21 October 2011 - 03:34 AM

I'm trying to use tftpd32.ini. I've tried versions 4.00 and 3.51. In both versions, I'm seeing the same buggy behavior in the DHCP settings tab. Say I include the following in the INI file:

[DHCP]
Mask=255.255.255.0
DNS=192.168.0.1

In the program, this is what's displayed:

Mask [255.0.0.0]
WINS/DNS Server [192.0.0.0]

Do I need to specify the IP address information in some strange way, or is this a bug?

Thanks,
Mike

#2 NetFanTom

NetFanTom

    Frequent Member

  • .script developer
  • 117 posts
  •  
    Germany

Posted 21 October 2011 - 08:24 AM

strange trap :suda:

use tftpd32
Settings
Global tab
DHCP is enabled

DHCP tab
Enter the following:
WINS / DNS server 192.168.0.1
Mask 255.255.255.0
OK

Close tftpd32
Open the tftpd32.ini with Notepad
You are viewing:
[DHCP]
Mask = 16777215
DNS = 16820460

tftpd32 coded the ip number:
192.168.0.1 = 1 * 256 ^ 3 +0 * 256 ^ 2 +168 * 256 ^ 1 +192 = 16820460
255.255.255.0 = 0 * 256 ^ 3 +255 * 256 ^ 2 +255 * 256 ^ 1 +255 = 16777215


NetFanTom :)

#3 mike-d

mike-d
  • Members
  • 2 posts
  •  
    United States

Posted 22 October 2011 - 02:48 AM

Thanks for the tip, that seems to address the immediate issue. I tried your method, but changes I make in the GUI aren't saved in the INI file. Any ideas on that?

...And now, the program insists on crashing when I close it:

Faulting application tftpd32.exe, version 4.0.0.0, faulting module tftpd32.exe, version 4.0.0.0, fault address 0x0000aaa6.

So it goes like the old addage, one step forward, two steps back. I'm running under Windows XP Pro SP3. More details are available, if necessary.

#4 NetFanTom

NetFanTom

    Frequent Member

  • .script developer
  • 117 posts
  •  
    Germany

Posted 22 October 2011 - 07:25 AM

tftpd32 really just brings such errors when the network is not working. :dubbio:

Maybe install Microsoft Loopback adapter in Windows XP.
http://support.microsoft.com/kb/839013

Or try the following please
http://reboot.pro/15553/


Regards :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users