Date: Thu, 15 Jun 2000 10:15:13 -0700 (MST) From: "Chad R. Larson" <chad@DCFinc.com> To: gwq_uk@yahoo.com Cc: FreeBSD-Stable@FreeBSD.ORG Subject: Re: PPP bug! Message-ID: <200006151715.KAA10865@freeway.dcfinc.com> In-Reply-To: <20000615135037.28516.qmail@web1401.mail.yahoo.com> from Greg Quinlan at "Jun 15, 0 06:50:37 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006151715.KAA10865>