From owner-freebsd-stable Thu Jun 15 10:15:24 2000 Delivered-To: freebsd-stable@freebsd.org Received: from freeway.dcfinc.com (cx74889-a.phnx3.az.home.com [24.1.193.157]) by hub.freebsd.org (Postfix) with ESMTP id 2B97237C38F for ; Thu, 15 Jun 2000 10:15:16 -0700 (PDT) (envelope-from chad@freeway.dcfinc.com) Received: (from chad@localhost) by freeway.dcfinc.com (8.8.8/8.8.8) id KAA10865; Thu, 15 Jun 2000 10:15:13 -0700 (MST) (envelope-from chad) From: "Chad R. Larson" Message-Id: <200006151715.KAA10865@freeway.dcfinc.com> Subject: Re: PPP bug! In-Reply-To: <20000615135037.28516.qmail@web1401.mail.yahoo.com> from Greg Quinlan at "Jun 15, 0 06:50:37 am" To: gwq_uk@yahoo.com Date: Thu, 15 Jun 2000 10:15:13 -0700 (MST) Cc: FreeBSD-Stable@FreeBSD.ORG Reply-To: chad@DCFinc.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As I recall, Greg Quinlan wrote: > I had a look at the code for pppd and it appears that > a line in options.c program which I don't completely > understand (~& does what? right-shift??) is to blame. The code is "anding" in "not" mask.s_addr (that is, the one's complement of the mask). > if ((inet_aton(*argv, &mask)) == -1 || (netmask & > ~mask.s_addr)) { > fprintf(stderr, "Invalid netmask %s\n", > *argv); > return (0); > } -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org larson1@home.net DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message