From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 3 15:17:09 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEAB1106567A for ; Tue, 3 Jun 2008 15:17:09 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32707.mail.mud.yahoo.com (web32707.mail.mud.yahoo.com [68.142.207.251]) by mx1.freebsd.org (Postfix) with SMTP id 78A4D8FC18 for ; Tue, 3 Jun 2008 15:17:09 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 71496 invoked by uid 60001); 3 Jun 2008 14:50:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=SN5UNv++yaWYHVhG7n12/7WqHAXtpU+eQJ0wyXaLI+F/5ngq1tEROL1wohA7taunt43r0IxYObZKnSC/R+ZyqJUxxwRq3Pm/YQ8/HZTRHI5vAPyKl8pt+5FkJ1F9CiDXvGWG6DN5eCh2lXPBR5eEWZWTrpzbQJ2wRPkM64iEsNY=; Received: from [190.157.196.204] by web32707.mail.mud.yahoo.com via HTTP; Tue, 03 Jun 2008 07:50:28 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Tue, 3 Jun 2008 07:50:28 -0700 (PDT) From: pfgshield-freebsd@yahoo.com To: freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <853261.35086.qm@web32707.mail.mud.yahoo.com> X-Mailman-Approved-At: Tue, 03 Jun 2008 16:02:01 +0000 Cc: freebsd-hackers@FreeBSD.org Subject: Anyone interested in HDLC support for pppd ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2008 15:17:09 -0000 Hello; I started playing a bit with net/pppd23 and I noticed there are some patche= s for FreeBSD-3.0 that were never committed (NetBSD certainly has them). Ou= r pppd(8) is derived from the "samba" pppd port and should have them if we = want to continue updating it. I started adapting them but I am actually in a dead point due to my profoun= d ignorance on FreeBSD and it's latest changes. I am stuck here: _____ ... ../../../net/ppp_tty.c: In function `pppsyncstart': ../../../net/ppp_tty.c:653: error: `cdevsw' undeclared (first use in this f= unction) ../../../net/ppp_tty.c:653: error: (Each undeclared identifier is reported = only once ../../../net/ppp_tty.c:653: error: for each function it appears in.) ../../../net/ppp_tty.c:653: warning: implicit declaration of function `majo= r' ../../../net/ppp_tty.c:653: warning: nested extern declaration of `major' *** Error code 1 ______ the offending code is this: ______ /* call device driver IOCTL to transmit a frame */ if ((*cdevsw[major(tp->t_dev)]->d_ioctl) (tp->t_dev,TIOCXMTFRAME,(caddr_t)&m,0,0)) { /* busy or error, set as current packet */ sc->sc_outm =3D m; _____ If someone can give me (easy to follow) suggestions on how to fix it I'll b= e grateful. The changes I already did to the original patches are not huge = but if someone wants to review them all just send me a private mail and I'l= l send them. cheers, Pedro.=0A=0A=0A ___________________________________ =0AScopri il B= log di Yahoo! Mail: trucchi, novit=E0, consigli... e la tua opinione!=0Ahtt= p://www.ymailblogit.com/blog/