mpd4 on sparc64 problem (maybe netgraph involved)

Volodymyr Kostyrko c.kworr at gmail.com
Sat Nov 4 01:15:43 UTC 2006


0k, I've finally get my hands to this stuff...

I have a host machine (i386) with many i386 clients and one sparc64 all
configured the same way. All i386 client work just fine, while sparc64
one refuses to do so.

This is a config sample:
out0:
   new -n -i ng0 SG PPPoE
   set auth authname negative1
   set bundle no multilink compression
   set bundle yes encryption
   set ecp enable des
   set iface addrs 1.1.1.1 2.2.2.2
   set iface disable on-demand proxy-arp tcpmssfix
   set iface route default
   set ipcp ranges 0.0.0.0/0 0.0.0.0/0
   set link no pap chap
   set link accept chap-md5
   set link yes acfcomp protocomp
   open

This config works just fine on i386, but fails on sparc. The problem
seems to be in echo/reply handling. On sparc64 echo/reply looks this way:

21:49:14.140583 PPPoE  [ses 0x230] LCP, Echo-Request (0x09), id 139,
length 10
         encoded length 8 (=Option(s) length 4)
           Magic-Num 0xa00fbb83
21:49:14.141577 PPPoE  [ses 0x230] LCP, Echo-Reply (0x0a), id 139, length 10
         encoded length 8 (=Option(s) length 4)
           Magic-Num 0xf09f2427

And on i386 like this:

21:49:13.441359 PPPoE  [ses 0x218] LCP, Echo-Request (0x09), id 174,
length 10
         encoded length 8 (=Option(s) length 4)
           Magic-Num 0x98036415
21:49:13.443434 PPPoE  [ses 0x218] LCP, Echo-Reply (0x0a), id 174, length 10
         encoded length 8 (=Option(s) length 4)
           Magic-Num 0x357f56e9

The i386 version is just fine, while sparc64 one results in following
logs on the host machine:

Nov  3 21:49:14 nora mpd: [pppoe5] LCP: magic number is wrong:
0xf09f2427 != 0x00000000
Nov  3 21:49:14 nora mpd: [pppoe5] LCP: received an invalid magic number
Nov  3 21:49:14 nora mpd: [pppoe5] LCP: LayerFinish
Nov  3 21:49:14 nora mpd: [pppoe5] LCP: LayerStart
Nov  3 21:49:14 nora mpd: [pppoe5] LCP: state change Opened --> Starting
Nov  3 21:49:14 nora mpd: [pppoe5] LCP: phase shift NETWORK --> DEAD
Nov  3 21:49:14 nora mpd: [pppoe5] RADIUS: RadiusAccount for: negative1
Nov  3 21:49:14 nora mpd: [pppoe5] RADIUS: using
/usr/local/etc/raddb/radius.conf
Nov  3 21:49:14 nora mpd: [pppoe5] RADIUS: RadiusAddServer Adding 127.0.0.1
Nov  3 21:49:14 nora mpd: [pppoe5] RADIUS: Termination cause: Protocol
error:PPP layer LCP failed: received an invalid magic number, RADIUS: 15

Mercy! I'm down...

PS:

host# uname -a
FreeBSD nora.synergetica.dn.ua 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #6:
Tue Oct 31 15:39:50 EET 2006
arcade at nora.synergetica.dn.ua:/usr/obj/mnt/storage/usr/src/sys/NORA  i386

client_sparc64# uname -a
FreeBSD blade.lan 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #5: Tue Oct 31
13:43:16 UTC 2006
arcade at blade.lan:/usr/obj/.amd_mnt/nora/host/mnt/storage/usr/src/sys/BLADE
  sparc64

MPD4 beta 5

-- 
Sphinx of black quartz judge my vow!



More information about the freebsd-net mailing list