From owner-freebsd-net@FreeBSD.ORG Sat Nov 4 01:15:43 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0502016A503 for ; Sat, 4 Nov 2006 01:15:43 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from nora.synergetica.dn.ua (synergetica.dn.ua [82.207.115.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 466A543D5F for ; Sat, 4 Nov 2006 01:15:32 +0000 (GMT) (envelope-from c.kworr@gmail.com) Received: from [172.30.0.159] (yarn.lan [172.30.0.159]) (authenticated bits=0) by nora.synergetica.dn.ua (8.13.8/8.13.8) with ESMTP id kA41FQsu067238; Sat, 4 Nov 2006 03:15:27 +0200 (EET) (envelope-from c.kworr@gmail.com) Message-ID: <454BE9AE.4020008@gmail.com> Date: Sat, 04 Nov 2006 03:15:26 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.8.0.7) Gecko/20061019 SeaMonkey/1.0.5 MIME-Version: 1.0 To: freebsd-net@freebsd.org, mpd-users@lists.sourceforge.net Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: mpd4 on sparc64 problem (maybe netgraph involved) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Nov 2006 01:15:43 -0000 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@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@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!