From owner-freebsd-questions Mon Mar 24 03:02:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA00412 for questions-outgoing; Mon, 24 Mar 1997 03:02:53 -0800 (PST) Received: from ns.okbmei.msk.su (gw.okbmei.msk.su [194.190.170.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA00403 for ; Mon, 24 Mar 1997 03:02:44 -0800 (PST) Received: (from davydov@localhost) by ns.okbmei.msk.su (8.8.4/8.8.4) id OAA01751 for freebsd-questions@freebsd.org; Mon, 24 Mar 1997 14:02:15 +0300 (MSK) Message-Id: <199703241102.OAA01751@ns.okbmei.msk.su> Subject: about ppp in 2.2-RELEASE To: freebsd-questions@freebsd.org Date: Mon, 24 Mar 1997 14:02:14 +0300 (MSK) From: "Andrew L.Davydov" Reply-To: "Andrew L.Davydov" Organization: OKB MEI X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all. Please tell me, what is the sux in pppd? I can't set netmask larger than netmask on ethernet. If I set netmask in option file smaller than netmask on ethernet, it works fine. What is the use of this stuff? sys-bsd.c: ---- /* * Check that the interface is up, and not point-to-point or loopback. */ strncpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); if (ioctl(sockfd, SIOCGIFFLAGS, &ifreq) < 0) continue; if ((ifreq.ifr_flags & (IFF_UP|IFF_POINTOPOINT|IFF_LOOPBACK)) != IFF_UP) continue; /* * Get its netmask and OR it into our mask. */ if (ioctl(sockfd, SIOCGIFNETMASK, &ifreq) < 0) continue; mask |= ((struct sockaddr_in *)&ifreq.ifr_addr)->sin_addr.s_addr; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- --------------------- Mr. Andrew L.Davydov Network Manager - UniForum Member