From owner-freebsd-hackers Fri May 5 15:32:40 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA15200 for hackers-outgoing; Fri, 5 May 1995 15:32:40 -0700 Received: from p54c.spnet.com ([204.156.130.11]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA15194 for ; Fri, 5 May 1995 15:32:35 -0700 Received: from localhost (localhost [127.0.0.1]) by p54c.spnet.com (8.6.11/8.6.9) with SMTP id PAA03358; Fri, 5 May 1995 15:32:31 -0700 Message-Id: <199505052232.PAA03358@p54c.spnet.com> X-Authentication-Warning: p54c.spnet.com: Host localhost didn't use HELO protocol To: hackers@FreeBSD.org cc: elh@p54c.spnet.com Subject: Re: slattach!!!!!!! - solutions Date: Fri, 05 May 1995 15:32:31 -0700 From: Ed Hudson Sender: hackers-owner@FreeBSD.org Precedence: bulk howdy. 1) capturing ip/gateway information via chat: i use a modified version of chat to print to stderr all characters that it receives from the serial line, capture that in my driver script, and use sed/awk to glean my target ip and remote ip information. an imperfect kludge, but much easier than incorporating 'expect', unless you already have it. the uuencoded section below contains both the sample script that i use, as well as the modifications to chat. 2) constant sl-unit number because i have multiple slip connections going simultaneously, i cannot tolerate slattach's normal behaviour of providing unpredictable sl-units (eg, sl1, sl0, sl2, etc). also included in the uuencoded file is a patch to if_sl.c. with the enabling option in your kernel config file this patch produces predictable sl-unit numbers - the unit number is taken from the minor device of the tty number (the last few bits of it, anyway). i think a better fix for this last problem is in the works by the core members, but until its operational, i suggest you try the 'PREDICTABLE_SL' fix included below if you have similar problems (use multiple slip connections simultaneously). to use this, you must add: options "PREDICTABLE_SL" to your kernel config file these two patches are independent. i DON'T recommend that patch-chat be used in any real distribution tree i DO recommend that patch-sys be incorporated in 2.0.5 if the unit-controllable slattach isn't ready. -elh 415 949 4374 elh@spnet.com to unpack: save this mail mesage to a file uudecode file tar xvfz slattach.stuff.tar.Z to apply patch for chat: cd slattach.stuff patch -p < patch-chat pushd /usr/src/usr.bin/chat make make install to apply patch for predictable_sl: cd slattach.stuff patch -p < patch-sys pushd /usr/src/sys/i386/conf remake your kernel begin 664 slattach.stuff.tar.Z M'YV0+E[,81.&#ITP8]"XF$.GCADS+P!(G$BQHL6+&#-JW,BQ(@@:,&[4/'FR!HR5+&.>?`FBQD@9-63("$D21(P8-&[8,%FCH]&C2),JO5B' M81@Y)P&488-FJ48Z5:UJWO8+L&'%CP8,*%#1^^@%,P88N$!I"%#9ABC(LW;,@DF%+' M#0@B9<;XQ.'SA@X8,G3\])DC!PT%+;*G7MWZ]>K9M747%$^G=P(CRA0&E89JGE MEJ2-19!!""G$D$,0#90&'"TX)0<=:8Z1'AQT<,E572'9M5=?@?WE5TR+U6#? M83DE-@-(?\;@9PPR3";GHAME]E14G;]0!%1EIA%%K MKR"P45L9*,X!1QEED(%B&,9-P40+Q3$)@AMUM"$&CR"@P6,9H8*0AAF_!AMN M&':4X<8)OH8!!QS*1@L"5F6`,!"V;FAK1AIX3.L&&2`\E:\:F94K1W']NG$& M"&^XD:^9<(`P1L02CT%'&A&CV$88:^1K;0\#P3`J$458D<001?0P1AUAA#&# M`E-`44011/3P4V0FCSS0S+GNBBR^]SYU1AF^3!41AL*0!'$ M%%-<\804.1N.>&U?L.7U'61`KOCDE5^>N>6<*W`N"%N`T`*Z))1Z:JI2O,#$ MJ2ZX0`+**K,,0A<*X.L&DLFAX;0(%#]=AAUIC)%O&A[6>FNT(D"/A[8Q*/`O MJ"/\B\=;,(-P?,HK%X%^N<#6`4(;F8%0=<'WOT'LO_;"S;V<=@>PK0%M3$+# MO=#`O7(9:PYO0%'][I<_ROW//40+F7O8(H?&(8U''L)*01:8KS#<80T"L9<& M(?:0'EL0&-FP+6@2SX+FR!\2(@<"(4+G#;BS7 M+CF4"XMQB*(;M%=#J.QP8K/;W*[D\`;L[L72'ACK`80QL0%)`\$`>$(A`!"`(`A6T`((G M+"&55"`"%4B@-[F!8`AQD]L0J&!*5&)1#HQSG`[<)SC"Z>MK81L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