Browse Source

Make netcfg-static be a bit smarter about default gw and subnet masks and prepare for upload

r1216
master
Tollef Fog Heen 21 years ago
parent
commit
5f677a6717
  1. 4
      debian/changelog
  2. 1
      debian/netcfg-static.templates
  3. 4
      netcfg-static.c

4
debian/changelog

@ -1,10 +1,10 @@
netcfg (0.18) unstable; urgency=low
* NOT RELEASED YET
* Make netcfg-dchp not ask about name servers and such -- those should
be gotten from the dhcp server.
* Make netcfg-static be a bit smarter about default gw and subnet masks.
-- Tollef Fog Heen <tfheen@debian.org> Wed, 6 Nov 2002 12:24:36 +0100
-- Tollef Fog Heen <tfheen@debian.org> Fri, 8 Nov 2002 04:19:47 +0100
netcfg (0.17) unstable; urgency=low

1
debian/netcfg-static.templates

@ -15,6 +15,7 @@ _Description: Pointopoint address?
Template: netcfg/get_netmask
Type: string
Default: 255.255.255.0
_Description: Netmask?
The netmask is used to determine which machines are local to your
network. Consult your network administrator if you do not know the

4
netcfg-static.c

@ -83,6 +83,10 @@ static void netcfg_get_static()
} else {
ptr = debconf_input("critical", "netcfg/get_netmask");
dot2num(&netmask, ptr);
gateway = ipaddress & netmask;
client->command(client, "set", "netcfg/get_gateway",
num2dot(gateway+1), NULL);
ptr = debconf_input("critical", "netcfg/get_gateway");
dot2num(&gateway, ptr);

Loading…
Cancel
Save