Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!news.moneng.mei.com!howland.reston.ans.net!xlink.net!isar.de!salyko!nasim.sta.sub.org!not-for-mail From: knarf@nasim.cube.net (Frank Bartels) Newsgroups: comp.os.386bsd.questions Subject: [FreeBSD] SLIP and PPP Date: 13 Oct 1994 21:51:59 +0100 Organization: The Sunsite for ATARI-Friends Lines: 92 Message-ID: <37k6lf$aak@nasim.cube.net> NNTP-Posting-Host: nasim.cube.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 PL2] Hi all! I just got my serial card with four 16550A on it and now I want to swap the modems from my Sun to my PC running FreeBSD 1.1.5. My users want to dial into my machines often using SLIP or PPP. I'm still not sure if I can get full functionality with the FreeBSD box as I have on my Sun. - PPP: FreeBSD 1.1.5 comes with pppd 2.0.4. I tried to update to 2.1.2, but without success. pppd compiles fine, but the new kernel does not: cc -c -O -D__FreeBSD__ -W -Wreturn-type -Wcomment -I. -I../.. -I../../sys -DSOGAND -DI386_CPU -DPCVT_INHIBIT_NUMLOCK -DPCVT_FREEBSD=115 -DSCSI_DELAY=15 -DFAT_CURSOR -DUCONSOLE -DXSERVER -DCOMPAT_43 -DPCFS -DNFS -DINET -DKERNEL -Di386 -DNPX ../../net/if_ppp.c [...] ../../net/if_ppp.c: In function `pppread': ../../net/if_ppp.c:384: `ttyin' undeclared (first use this function) ../../net/if_ppp.c:384: (Each undeclared identifier is reported only once ../../net/if_ppp.c:384: for each function it appears in.) [...] ../../net/if_ppp.c: In function `pppstart': ../../net/if_ppp.c:880: request for member `rb_hd' in something not a structure or union ../../net/if_ppp.c:880: request for member `rb_tl' in something not a structure or union ../../net/if_ppp.c:880: request for member `rb_tl' in something not a structure or union ../../net/if_ppp.c:880: request for member `rb_hd' in something not a structure or union [and so on...] I assume I cannot use the pppd from 2.1.2 together with the old kernel (I did not try it, but...). - SLIP: sliplogin is included in the FreeBSD distribution, but /etc/slip.login and /etc/slip.logout are missing. I copied them from my sun, but the ifconfig command does not understand the link[012] options and the route command does not understand this line: route set $R $L mtu 552 pipesize 2048 rtt 5 || exit 2 (And, yes, I use static routing, because I did not read the manuals for routed yet and for two or max. four machines in a local network routed seems a bit overpowered, right?) I tried to compile the ifconfig command from the cslip-2.7 package, but there are some strange things: freebsd:/usr/include/net/if_slvar.h: #define SC_COMPRESS 0x0002 /* compress TCP traffic */ #define SC_NOICMP 0x0004 /* supress ICMP traffic */ #define SC_AUTOCOMP 0x0008 /* auto-enable TCP compression */ [IFF_LINK[012] aren't defined anywhere.] sunos:/usr/include/net/if_slvar.h: /* * There are three per-line options kept in the device specific part of * the interface flags word: IFF_LINK0 enables compression; IFF_LINK1 * enables compression if a compressed packet is received from the * other side; IFF_LINK2 will drop (not send) ICMP packets. */ #ifndef IFF_LINK0 /* * This system doesn't have defines for device specific interface flags, * Define them. */ #define IFF_LINK0 0x1000 #define IFF_LINK1 0x2000 #define IFF_LINK2 0x4000 #endif I combined the information of both files and I got an ifconfig binary which understood the link[012] options, but after looking at the parameters for the device I set the options for DEBUG instead of LINK1. ;( Any ideas how to configure the slip device with the link[012] options? Please help. Bye, Knarf -- Frank Bartels | UUCP/ZModem: + 49 89 5469593 | MiNT is knarf@nasim.cube.net | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!