Date: Fri, 05 May 1995 15:32:31 -0700 From: Ed Hudson <elh@p54c.spnet.com> To: hackers@FreeBSD.org Cc: elh@p54c.spnet.com Subject: Re: slattach!!!!!!! - solutions Message-ID: <199505052232.PAA03358@p54c.spnet.com>
next in thread | raw e-mail | index | archive | help
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 <modify your config file for PREDICTABLE_SL> remake your kernel begin 664 slattach.stuff.tar.Z M'YV0+E[,81.&#ITP8]"XF$.GCADS+P!(G$BQHL6+&#-JW,BQ(@@:,&[<J`$" M`(B/(&>4/'FR!HR5+&.>?`FBQD@9-63("$D21(P8-&[8,%FCH]&C2),JO5B' M81@Y)P&488-FJ48Z5:UJW<JUJ]>O8+L&'%CP8,*%#1^^@%,P88N$!</*11H# M!@P;-FC`I)$29LN7)F6>I"%#9<V;-&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