From owner-freebsd-current Wed Sep 6 08:28:13 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id IAA08266 for current-outgoing; Wed, 6 Sep 1995 08:28:13 -0700 Received: from asstdc.scgt.oz.au (asstdc.scgt.oz.au [202.14.234.65]) by freefall.freebsd.org (8.6.11/8.6.6) with ESMTP id IAA08191 for ; Wed, 6 Sep 1995 08:28:10 -0700 Received: (from imb@localhost) by asstdc.scgt.oz.au (8.6.12/BSD4.4) id BAA15734 for current@freebsd.org; Thu, 7 Sep 1995 01:28:03 +1000 From: michael butler Message-Id: <199509061528.BAA15734@asstdc.scgt.oz.au> Subject: pppd & netmask 255.255.255.255 To: current@freebsd.org Date: Thu, 7 Sep 1995 01:28:02 +1000 (EST) X-Mailer: ELM [version 2.4 PL24beta] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1078 Sender: current-owner@freebsd.org Precedence: bulk I'm currently set up to allow dial-in IP access via a (small) modem pool and I have two basic problems that I'm sure other intending ISPs will strike: i) we have no dynamic allocation of IP numbers :-( ii) the following code fragment from /usr/src/usr.sbin/pppd/options.c refuses a netmask for a host route (255.255.255.255) .. /* * setnetmask - set the netmask to be used on the interface. */ static int setnetmask(argv) char **argv; { u_long mask; if ((mask = inet_addr(*argv)) == -1 || (netmask & ~mask) != 0) { fprintf(stderr, "Invalid netmask %s\n", *argv); return 0; } netmask = mask; return (1); } The result is that "ifconfig -a" shows a netmask of 255.255.255.0 :-(. The "natural netmask" on this (sub)net is 255.255.255.240 but that's not what I want either .. these are single-interface Windows boxes dialling in. On the same machine, however, gated apparently advertises just the host route as intended. gated is configured NOT to export kernel routes (obtained via routing socket). Which is wrong .. ifconfig or gated ? michael