From owner-freebsd-hackers Wed May 15 09:02:16 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA27564 for hackers-outgoing; Wed, 15 May 1996 09:02:16 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA27558 for ; Wed, 15 May 1996 09:02:10 -0700 (PDT) Received: from nightmare.dreamchaser.org ([207.40.47.18]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id JAA04966 for ; Wed, 15 May 1996 09:02:09 -0700 Received: from mofo (mofo.dreamchaser.org [206.230.42.91]) by nightmare.dreamchaser.org (8.6.12/8.6.12) with SMTP id JAA15399 for ; Wed, 15 May 1996 09:59:54 -0600 Message-ID: <3199FF85.21E7@ics.com> Date: Wed, 15 May 1996 10:00:05 -0600 From: Gary Aitken Organization: Integrated Computer Solutions X-Mailer: Mozilla 3.0b3 (X11; I; SunOS 5.4 sun4c) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: user ppp with dedicated line Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I mistakenly posted this to ports; my apologies to those who have already seen this. I'm using user ppp on a dedicated 56K line, successfully but probably not correctly :-( Under freebsd version 2.1 Some questions: 1. What is the difference between direct and dedicated modes? I'm using a dedicated 56K line; is "direct" a hardwired link (e.g. port to port), and "dedicated" a dedicated telco link? 2. In order to get ppp to work on my dedicated line, I needed to make the following mods to force packet mode: *** /cdrom/usr/src/usr.sbin/ppp/main.c Thu Oct 5 14:24:42 1995 --- main_new.c Wed May 1 07:46:56 1996 *************** *** 599,604 **** --- 599,610 ---- } else if (mode & MODE_DEDICATED) { if (!modem) modem = OpenModem(mode); + /* + * garya@dreamchaser.org + * Force packet mode as for a direct connection + */ + PacketMode(); } 3. I'm having trouble getting ppp.linkup to be read when used with a dedicated line. It appears to be totally ignored when ppp is started as follows, with the above mods: ppp -dedicated myline The only way I could get a default route added for my dedicated line was to start it in /etc/start_if.tun0 as follows: ppp -dedicated myline sleep 10 route add default 199.2.139.16 The sleep is ugly and theoretically unreliable; but since ppp.linkup wasn't getting read or properly executed, I needed the sleep to wait for the network to come up and the routing table to get established. What's the *right* way to do this? 4. I tried putting some logprintf debug code in SelectSystem, to check to see if ppp.linkup was even being read; but doing so caused a core dump. Can someone explain why, and give me a hint as to how to debug this? 5. Invalid lines in ppp.linkup are apparently ignored, or executed with the output directed to /dev/null. (At least nothing shows up in ppp.log) How do I tell if it is reading ppp.linkup? I've tried ppp.linkup with each of the following, but I suspect the problem is that the whole thing isn't being read: myline: add 0 0 HISADDR add 207.40.47.18 0 HISADDR add 0 0 199.2.139.16 add 207.40.47.18 0 199.2.139.16 add default 0 199.2.139.16 6. When running in dedicated (or direct, I think) mode, attempting to connect via a telnet to port 3000 appears to work, but typing commands produces no output and you have to kill the telnet session to recover. Is this a known problem? Or, as usual, I'm screwing something up? ... -- Gary Aitken garya@ics.com (business) garya@dreamchaser.org (personal)