From owner-freebsd-net@FreeBSD.ORG Fri Jun 27 07:11:31 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A38C737B401 for ; Fri, 27 Jun 2003 07:11:31 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [195.91.162.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5086043F75 for ; Fri, 27 Jun 2003 07:11:30 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.6/8.12.8) with ESMTP id h5REBRNx013502 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 27 Jun 2003 18:11:27 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.6/8.12.6/Submit) id h5REBQuA013501 for freebsd-net@freebsd.org; Fri, 27 Jun 2003 18:11:26 +0400 (MSD) Date: Fri, 27 Jun 2003 18:11:26 +0400 From: Gleb Smirnoff To: freebsd-net@freebsd.org Message-ID: <20030627141126.GA13409@cell.sick.ru> Mail-Followup-To: Gleb Smirnoff , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.1i Subject: ng_ppp: how to send NGM_PPP_SET_CONFIG? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 14:11:32 -0000 Hi! I'm trying to make a WAN card (Tau-PCI) to work via netgraph. I have: [cp0] <-> [ppp0] <-> [ng0] cp0 is node written by Cronyx (www.cronyx.ru) for their WAN adapters. ppp0 is ng_ppp and ng0 is ng_iface. Starting sequence is like this: ngctl << mkpeer iface dummy ipx msg ng0: point2point {}; mkpeer .:dummy ppp inet inet name .:dummy.inet ppp0 connect ppp0: cp0: link0 rawdata ifconfig ng0 x.x.x.x x.x.x.y up Trying to ping x.x.x.y i get: Device not configured Trying to ping x.x.x.x i get: No route to host If I connect to ppp0's bypass hook, I see data coming in. In ng_ppp(4) it is said that node needs to be configured first, but I can't find the way to send NGM_PPP_SET_CONFIG message in ASCII form. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE