From owner-freebsd-isdn Mon Nov 27 0:41:52 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from michael.checkpoint.com (michael.checkpoint.com [199.203.73.68]) by hub.freebsd.org (Postfix) with ESMTP id C449037B479 for ; Mon, 27 Nov 2000 00:41:49 -0800 (PST) Received: from happy.checkpoint.com (localhost [127.0.0.1]) by michael.checkpoint.com (8.9.3/8.9.1) with ESMTP id KAA14340; Mon, 27 Nov 2000 10:41:47 +0200 (IST) Received: (from mellon@localhost) by happy.checkpoint.com (8.11.1/8.11.1) id eAR8j8J41887; Mon, 27 Nov 2000 10:45:08 +0200 (IST) (envelope-from mellon@pobox.com) Date: Mon, 27 Nov 2000 10:45:08 +0200 From: Anatoly Vorobey To: Hellmuth Michaelis Cc: freebsd-isdn@freebsd.org Subject: Re: problems with sppp setup Message-ID: <20001127104507.A41715@happy.checkpoint.com> References: <20001126000555.06645@techunix.technion.ac.il> <20001126075535.A97183E8@hcswork.hcs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001126075535.A97183E8@hcswork.hcs.de>; from hm@hcs.de on Sun, Nov 26, 2000 at 08:55:35AM +0100 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Nov 26, 2000 at 08:55:35AM +0100, Hellmuth Michaelis wrote: > >From the keyboard of Anatoly Vorobey: > > > Here's the error that 'ispppcontrol isp0' gives me: > > > > ispppcontrol: SIOCGIFGENERIC(SPPPIOGDEFS): Invalid argument > > The size of the data structure for the ioctl differs between ispppcontrol > and what the kernel expects. In other words: you are using a kernel > and a ispppcontrol utility which were compiled from different sources. Thanks a lot! That helped. I realized that I'd made a silly mistake in fixing a header problem when compiling i4b 0.95. The header problem was that some source files of isdnd did not include and . I specifically remember that about rc_config.h . It includes them conditionally only for FreeBSD 3.x, but on my FreeBSD 4.0 400017 they were also needed by i4b_isppp.h and weren't included by any other header files. Thus make failed on rc_config.c (gcc didn't recognize MLEN). Another something which seems a bug that I discovered is that the handling of ppp- attributes in isdnd.rc is mixed up. The documentation states that send-auth, send-name, send-secret are used for *my* authentication which is sent to *remote*, and expect-auth,name,secret are used for *remote*'s authentication sent to us. However, in the source (rc_config.c, set_isppp_auth()) this is done exactly backwards: expect_* fields to myauth.* fields, and send_* fields to hisauth.* fields. This is very confusing. -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message