From owner-freebsd-stable Sat Sep 18 19: 2: 7 1999 Delivered-To: freebsd-stable@freebsd.org Received: from awfulhak.org (dynamic-12.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.12]) by hub.freebsd.org (Postfix) with ESMTP id A64D7154FA for ; Sat, 18 Sep 1999 19:01:31 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA21248; Sat, 18 Sep 1999 23:45:19 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA35320; Sat, 18 Sep 1999 23:50:45 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199909182250.XAA35320@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Spidey Cc: Brian Somers , freebsd-stable@FreeBSD.org Subject: Re: Problems with user-PPP login script In-reply-to: Your message of "Fri, 17 Sep 1999 20:46:17 EDT." <14306.57561.332158.857911@freed.dyn.ez-ip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 18 Sep 1999 23:50:45 +0100 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > What does it say if you've also got ``physical'' logging ? > > Really.. I do not understand that part. 'physical' logging? Ah... Ok: > > ppp ON freed> set log local chat physical > ppp ON freed> dial > Chat: deflink: Dial attempt 1 of 3 > ppp ON freed> Chat: Send: AT > Physical: write > Physical: 41 54 0d AT. > Chat: Expect(5): OK > Physical: read > Physical: 41 54 AT > Physical: read > Physical: 0d . > Physical: read > Physical: 0d 0a 4f 4b 0d 0a ..OK.. > Chat: Received: AT > Chat: Received: OK > Chat: Send: ATS7=45S0=0S11=50L3M1V1X4&c1E1Q0 > Physical: write > Physical: 41 54 53 37 3d 34 35 53 30 3d 30 53 31 31 3d 35 ATS7=45S0=0S11=5 > Physical: 30 4c 33 4d 31 56 31 58 34 26 63 31 45 31 51 30 0L3M1V1X4&c1E1Q0 > Physical: 0d . > Chat: Expect(5): OK > Physical: read > Physical: 41 54 AT > Physical: read > Physical: 53 37 3d S7= > Physical: read > Physical: 34 35 53 30 3d 30 53 31 31 3d 35 30 4c 33 4d 31 45S0=0S11=50L3M1 > Physical: read > Physical: 56 31 58 34 26 63 31 45 31 51 30 V1X4&c1E1Q0 > Physical: read > Physical: 0d . > Physical: read > Physical: 0d 0a 4f 4b 0d 0a ..OK.. > Chat: Received: ATS7=45S0=0S11=50L3M1V1X4&c1E1Q0 > Chat: Received: OK > Chat: Send: ATDT*70,343 2411 > Physical: write > Physical: 41 54 44 54 2a 37 30 2c 33 34 33 20 32 34 31 31 ATDT*70,343 2411 > Physical: 0d . > Chat: Expect(40): CONNECT > Physical: read > Physical: 41 54 44 54 2a 37 30 2c 33 34 33 20 32 34 31 31 ATDT*70,343 2411 > Physical: 0d . > Physical: read > Physical: 0d 0a 43 4f 4e 4e 45 43 54 20 33 38 34 30 30 0d ..CONNECT 38400. > Physical: 0a . > Chat: Received: ATDT*70,343 2411 > Chat: Received: CONNECT 38400 > Chat: Send: > Physical: write > Physical: 0d . > Chat: Expect(15): ame: > Physical: read > Physical: 0d 0a 53 65 72 76 65 75 72 20 64 65 20 74 65 72 ..Serveur de ter > Physical: 6d 69 6e 61 75 78 20 41 53 31 2e 43 43 2e 0d 0a minaux AS1.CC... > Physical: 28 3f 20 3d 20 63 6f 6d 6d 61 6e 64 65 73 3b 20 (? = commandes; > Physical: 20 41 49 44 45 20 3d 20 61 69 64 65 3b 20 20 4d AIDE = aide; M > Physical: 4f 54 44 20 3d 20 6d 65 73 73 61 67 65 20 64 75 OTD = message du > Physical: 20 6a 6f 75 72 29 0d 0a 0d 0a 0d 0a 55 73 65 72 jour)......User > Physical: 20 41 63 63 65 73 73 20 56 65 72 69 66 69 63 61 Access Verifica > Physical: 74 69 6f 6e 0d 0a 0d 0a 55 73 65 72 6e 61 6d 65 tion....Username > Physical: 3a 20 : > Chat: Received: > Chat: Received: Serveur de terminaux AS1.CC. > Chat: Received: (? = commandes; AIDE = aide; MOTD = message du jour) > Chat: Received: > Chat: Received: > Chat: Received: User Access Verification > Chat: Received: > Chat: Received: Username: > Chat: Send: beaupran > Physical: write > Physical: 62 65 61 75 70 72 61 6e 0d beaupran. > Chat: Expect(15): word: > Physical: read > Physical: 0d 0a 0d 0a 55 73 65 72 20 41 63 63 65 73 73 20 ....User Access > Physical: 56 65 72 69 66 69 63 61 74 69 6f 6e 0d 0a 0d 0a Verification.... > Chat: Received: > Chat: Received: > Chat: Received: User Access Verification > Chat: Received: > Physical: read > Physical: 55 73 65 72 6e 61 6d Usernam > Physical: read > Physical: 65 3a 20 e: > > ppp ON freed> quit all > > > It should actually be sending beaupran 0x0d 0x0a above (assuming > > your send string doesn't end with ``\c''. This actually looks ok. I *thought* it would be sending the 0x0a, but it doesn't in my set up. Try turning on physical logging (as above) while doing a manual chat. You'll see that the characters actually being transmitted are the same.... if they're not, that's the problem :-/ > Ok... It seems to send 0d alright. But the 0a? od is a linefeed and 0d > is a carriage return right? So it does not send the carriage return... 0x0d is a carriage return (the <-- key) 0x0a is a linefeed (^J) > Hum. Is it my fault? > > I do not understand the \c part... All send strings are assumed to have a 0x0d at the end *unless* the last bit is \c. It's interesting that if you specify your send string ending with \n, ppp sends 0x0a 0x0d rather than the more conventional 0x0d 0x0a ! I must fix that ! > I guess I would have to grep through the source code, eh? > > Argh. > > Could someone help me? How should I modigy the chat script? > > Thanks a lot... Comparing the ``physical'' logs is probably the best step next. > ants > > -- > Si l'image donne l'illusion de savoir > C'est que l'adage pretend que pour croire, > L'important ne serait que de voir > > Lofofora -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message