9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ppp confusion
@ 2006-04-03 23:16 Ronald G Minnich
  2006-04-03 23:53 ` Steve Simon
  0 siblings, 1 reply; 2+ messages in thread
From: Ronald G Minnich @ 2006-04-03 23:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

here isa ppp command:
ip/ppp  -C -c -ddddd -f -p /dev/eia0  -x /net.alt -b 115200

here is a ppp log (sorry!)
0 ppp: send confrequest: id=0
0 	ctlmap = 0
0 	magic = 2ea699c0
0 	protocol compress
0 	addr compress
0 ppp: putframe 0xc021 20
TX 7e ff 7d 23 c0 21 7d 21 7d 20 7d 20 7d 34 7d 22 7d 26 7d 20 7d 20 7d
20 7d 20 7d 25 7d 26 2e a6 99 c0 7d 27 7d 22 7d 28 7d 22 de 90 7e
0 ppp: c021 Sclosed->Sreqsent ctlmap 0/ffffffff flags 0 mtu 1450 mru 1450
RX 0d 0a 4f 4b 0d 0a
RX 7e ff 7d 23 c0 21 7d 21 7d 20 7d 20 7d 34 7d 22 7d 26 7d 20 7d 20 7d
20 7d 20 7d 25 7d 26 2e a6 99 c0 7d 27 7d 22 7d 28 7d 22 de 90 7e
1 ppp: discard len 4/44 cksum e5bb (d a 4f 4b)
1 getframe 0xc021
1 ppp: c021 rcv 1 len 20 id 0/0/1
1 ppp: recv confrequest: id=0
1 	ctlmap = 0
1 	magic = 2ea699c0
1 	protocol compress
1 	addr compress
1 ppp: possible loop
1 ppp: send confack: id=0
1 	ctlmap = 0
1 	magic = 2ea699c0
1 	protocol compress
1 	addr compress
1 ppp: putframe 0xc021 20
TX 7e ff 7d 23 c0 21 7d 22 7d 20 7d 20 7d 34 7d 22 7d 26 7d 20 7d 20 7d
20 7d 20 7d 25 7d 26 2e a6 99 c0 7d 27 7d 22 7d 28 7d 22 35 f9 7e
1 ppp: c021 Sreqsent->Sacksent ctlmap 0/0 flags 180 mtu 1450 mru 1450
RX 7e ff 7d 23 c0 21 7d 22 7d 20 7d 20 7d 34 7d 22 7d 26 7d 20 7d 20 7d
20 7d 20 7d 25 7d 26 2e a6 99 c0 7d 27 7d 22 7d 28 7d 22 35 f9 7e
1 getframe 0xc021
1 ppp: c021 rcv 2 len 20 id 0/0/1
1 ppp: recv confack
1 ppp: c021 Sacksent->Sopened ctlmap 0/0 flags 180 mtu 1450 mru 1450
1 ppp: send confrequest: id=0
1 ppp: putframe 0x80fd 4
TX 7e 80 fd 01 00 00 04 60 4b 7e
1 ppp: 80fd Sclosed->Sreqsent ctlmap 0/0 flags 0 mtu 1450 mru 1450
1 ppp: send confrequest: id=0
1 	ip addr 0.0.0.0
1 	dns addr 0.0.0.0
1 	dns2 addr 0.0.0.0
1 	wins addr 0.0.0.0
1 	wins2 addr 0.0.0.0
1 ppp: putframe 0x8021 34
TX 7e 80 21 01 00 00 22 03 06 00 00 00 00 81 06 00 00 00 00 83 06 00 00
00 00 82 06 00 00 00 00 84 06 00 00 00 00 6d 8d 7e
1 ppp: 8021 Sclosed->Sreqsent ctlmap 0/0 flags 0 mtu 1450 mru 1450
RX 7e 80 fd 01 00 00 04 60 4b 7e
1 getframe 0x80fd
1 ppp: 80fd rcv 1 len 4 id 0/0/1
1 ppp: recv confrequest: id=0
1 ppp: send confack: id=0
1 ppp: putframe 0x80fd 4
TX 7e 80 fd 02 00 00 04 ad 6e 7e
1 ppp: 80fd Sreqsent->Sacksent ctlmap 0/0 flags 0 mtu 1450 mru 1450
RX 7e 80 21 01 00 00 22 03 06 00 00 00 00 81 06 00 00 00 00 83 06 00 00
00 00 82 06 00 00 00 00 84 06 00 00 00 00 6d 8d 7e
2 getframe 0x8021
2 ppp: 8021 rcv 1 len 34 id 0/0/1
2 ppp: recv confrequest: id=0
2 	ip addr 0.0.0.0
2 	dns addr 0.0.0.0
2 	dns2 addr 0.0.0.0
2 	wins addr 0.0.0.0
2 	wins2 addr 0.0.0.0
2 ppp: bad 8021 option 129
2 ppp: bad 8021 option 131
2 ppp: bad 8021 option 130
2 ppp: bad 8021 option 132
2 ppp: send confreject: id=0
2 	dns addr 0.0.0.0
2 	dns2 addr 0.0.0.0
2 	wins addr 0.0.0.0
2 	wins2 addr 0.0.0.0
2 ppp: putframe 0x8021 28
TX 7e 80 21 04 00 00 1c 81 06 00 00 00 00 83 06 00 00 00 00 82 06 00 00
00 00 84 06 00 00 00 00 a8 fb 7e
2 ppp: 8021 Sreqsent->Sreqsent ctlmap 0/0 flags 0 mtu 1450 mru 1450
RX 7e 80 fd 02 00 00 04 ad
RX 6e 7e
2 getframe 0x80fd
2 ppp: 80fd rcv 2 len 4 id 0/0/1
2 ppp: recv confack
2 ppp: 80fd Sacksent->Sopened ctlmap 0/0 flags 0 mtu 1450 mru 1450
RX 7e 80 21 04 00 00 1c 81 06 00 00 00 00 83 06 00 00 00 00 82 06 00 00
00 00 84 06 00 00 00 00 a8 fb 7e
2 getframe 0x8021
2 ppp: 8021 rcv 4 len 28 id 0/0/1
2 ppp: recv confreject: id=0
2 	dns addr 0.0.0.0
2 	dns2 addr 0.0.0.0
2 	wins addr 0.0.0.0
2 	wins2 addr 0.0.0.0
2 ppp: 8021 rejecting 129
2 ppp: 8021 rejecting 131
2 ppp: 8021 rejecting 130
2 ppp: 8021 rejecting 132
2 ppp: send confrequest: id=2
2 	ip addr 0.0.0.0
2 ppp: putframe 0x8021 10
TX 7e 80 21 01 02 00 0a 03 06 00 00 00 00 6a 10 7e
RX 7e 80 21 01 02 00 0a 03 06 00 00 00 00 6a 10 7e
2 getframe 0x8021
2 ppp: 8021 rcv 1 len 10 id 2/2/3
2 ppp: recv confrequest: id=2
2 	ip addr 0.0.0.0
2 ppp: send confack: id=2
2 	ip addr 0.0.0.0
2 ppp: putframe 0x8021 10
TX 7e 80 21 02 02 00 0a 03 06 00 00 00 00 03 64 7e
2 ppp: 8021 Sreqsent->Sacksent ctlmap 0/0 flags 0 mtu 1450 mru 1450
RX 7e 80 21 02 02 00 0a 03 06 00 00 00 00 03 64 7e
2 getframe 0x8021
2 ppp: 8021 rcv 2 len 10 id 2/2/3
2 ppp: recv confack
2 ppp: 8021 Sacksent->Sopened ctlmap 0/0 flags 0 mtu 1450 mru 1450
2 ppp: setting up IP interface local :: remote :: (valid 0)

lotsa ip address 0.0.0.0 in there ...

ok, I have not used ppp for "quite some time ..."

Anybody out there see any obvious thing I'm doing wrong here, or that
the device is doing wrong? device claims to support ppp ...

what would I see in /net.alt once ppp was happily running? /net/ppp0?

thanks

ron


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] ppp confusion
  2006-04-03 23:16 [9fans] ppp confusion Ronald G Minnich
@ 2006-04-03 23:53 ` Steve Simon
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Simon @ 2006-04-03 23:53 UTC (permalink / raw)
  To: 9fans

I wrote a ppp packet decoder /n/sources/contrib/steve/pppdec.tar.gz,
its the first thing I wrote for plan9 so don't look too carfully.
It looks for the TX and RX hexdumps and prints them in more detail
than ppp can.

It tells me that you are not specifying an IP address and neither is the
other end, and you end up with all zeros (you knew that). I guess you
need to just specify local, remote, gateway, and DNS server addresses
on the ppp command line (maybe echo some of these into /net/ndb).

If you believe that your remote server should give you an address try
capturing a logfile from windows/linux/OSX/386bsd, and massage it
into TX/RX lines for pppdec for comparison.

-Steve


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-03 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-03 23:16 [9fans] ppp confusion Ronald G Minnich
2006-04-03 23:53 ` Steve Simon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).