Hi,
I am using FreeBSD 3.4-RELEASE to get connected to my
ISP (mindspring.com) through ADSL connection. I had a
hard time getting connected and finally I managed to get
connected with a small change in the ng_pppoe.c which actually
I am not comfortable. But the connection is fine afterwards.
Problem:
My pppoe discovery session was never getting completed. The
tcpdump showed a PADI and a PADO and then silence.
But after putting printfs in the ng_pppoe.c I was able to figure out
that pppoe client was not even reading the PADO and hence timing
out and calling pppoe_ticker(). The reason was a packet fragment
was noticed when receiving the PADO. There is a comment
in the code " We need to make sure tag area is contiguous as
we could wander off to end of buffer and make a mess ..."
In my case, m->m_len = 54 (mbuf) !=
m->m_pkthdr.len = 106 (actual pkt size)
and the packet length indeed was 106. There is also
a comment that we need to do more work to reassemble the mbuf.
Tcpdump and ethereal both were reading the PADO and len=106.
(Just for info MHLEN was 96 (sys.h) , MSIZE = 128 from machine/param.h)
I tried setting the mtu of the interface to different values
from 300 to 1492 to 1500. Also set the mtu/mru in ppp.conf
to different values. But I think the problem is not related to this.
I tried with two network cards in my PC, de0 and rl0 both
had same problems, but m->m_len was 96 in rl0.
So I bravely commented out the LEAVE(EMSGSIZE) just
to let the client continue on reading the PADO ... and
then the whole discovery completed, and my client got
a session id, ppp established and I am connected...
I am attaching the pppoe discovery below for reference ...
00:59:58.904544 PPPoE PADI v1, type 1, sess 0 len 26 [Service-Name
mindspring.com] [Host-Uniq 0055adc0]
1109 0000 001a 0101 000e 6d69 6e64 7370
7269 6e67 2e63 6f6d 0103 0004 0055 adc0
The following packet caused "packet fragmented" problem.
00:59:58.918726 PPPoE PADO v1, type 1, sess 0 len 86 [Host-Uniq
0055adc0] [AC-Name 41021030046011-redback-1.norva3] [Service-Name
mindspring.com] [Service-Name tunnel.mindspring.com]
1107 0000 0056 0103 0004 0055 adc0 0102
001f 3431 3032 3130 3330 3034 3630 3131
2d72 6564 6261 636b 2d31 2e6e 6f72 7661
3301 0100 0e6d 696e 6473 7072 696e 672e
636f 6d01 0100 1574 756e 6e65 6c2e 6d69
6e64 7370 7269 6e67 2e63 6f6d
00:59:58.918845 PPPoE PADR v1, type 1, sess 0 len 61 [Service-Name
mindspring.com] [AC-Name 41021030046011-redback] [Host-Uniq 0055adc0]
1119 0000 003d 0101 000e 6d69 6e64 7370
7269 6e67 2e63 6f6d 0102 001f 3431 3032
3130 3330 3034 3630 3131 2d72 6564 6261
636b 0000 0000 0000 0000 0001 0300 0400
55ad c0
/*** Dont know why AC-Name is truncated in above response **/
00:59:58.969707 PPPoE PADS v1, type 1, sess 15063 len 61 [Service-Name
mindspring.com] [Host-Uniq 0055adc0] [AC-Name
41021030046011-redback-1.norva3]
1165 3ad7 003d 0101 000e 6d69 6e64 7370
7269 6e67 2e63 6f6d 0103 0004 0055 adc0
0102 001f 3431 3032 3130 3330 3034 3630
3131 2d72 6564 6261 636b 2d31 2e6e 6f72
7661 33
------------....
Any clues? I will really appreciate any hints to this problem.
Will increasing the MSIZE help me?
Thanks!
Naga
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message