From matthias.andree@web.de  Mon Sep  6 10:59:35 2004
Return-Path: <matthias.andree@web.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0222716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Sep 2004 10:59:35 +0000 (GMT)
Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1405D43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Sep 2004 10:59:33 +0000 (GMT)
	(envelope-from matthias.andree@web.de)
Received: from m2a2.myip.org (g060fxjluhuv2c3q@pD951FD6C.dip.t-dialin.net [217.81.253.108])
	(authenticated bits=0)
	by unimail.uni-dortmund.de (8.13.0/8.13.0) with ESMTP id i86AxFvZ015382
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 6 Sep 2004 12:59:21 +0200 (CEST)
Received: by merlin.emma.line.org (Postfix, from userid 1001)
	id 5EBD41B215; Mon,  6 Sep 2004 12:55:37 +0200 (CEST)
Message-Id: <20040906105537.5EBD41B215@merlin.emma.line.org>
Date: Mon,  6 Sep 2004 12:55:37 +0200 (CEST)
From: Matthias Andree <matthias.andree@web.de>
Reply-To: Matthias Andree <matthias.andree@web.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: user-ppp broken again - maybe xl(4) or ng_* bug?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71424
>Category:       kern
>Synopsis:       user-ppp broken again - maybe xl(4) or ng_* bug?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 06 11:00:48 GMT 2004
>Closed-Date:    Tue Sep 07 08:02:46 GMT 2004
>Last-Modified:  Sun Jul  3 00:20:15 GMT 2005
>Originator:     Matthias Andree
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
>Environment:
System: FreeBSD merlin.emma.line.org 5.3-BETA3 FreeBSD 5.3-BETA3 #7: Mon Sep 6 12:28:24 CEST 2004 toor@merlin.emma.line.org:/usr/src/sys/i386/compile/MA5 i386


	
>Description:
5-CURRENT was fine recently, BETA3 has broken user-mode ppp for pppoe again
(at least on xl(4)):

ppp[884]: Phase: Using interface: tun0
ppp[884]: Phase: deflink: Created in closed state
ppp[884]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
ppp[884]: tun0: Command: default: set device /dev/cuaa1
ppp[884]: tun0: Command: tdsl: set device PPPoE:xl1
ppp[884]: tun0: Command: tdsl: set authname ********
ppp[884]: tun0: Command: tdsl: set authkey ********
ppp[884]: tun0: Command: tdsl: add default HISADDR
ppp[884]: tun0: Command: tdsl: set dial
ppp[884]: tun0: Command: tdsl: set login
ppp[884]: tun0: Command: tdsl: set timeout 0
ppp[885]: tun0: Phase: PPP Started (ddial mode).
ppp[885]: tun0: Phase: bundle: Establish
ppp[885]: tun0: Phase: deflink: closed -> opening
ppp[885]: tun0: Warning: xl1: Unexpected node type ``'' (wanted ``ether'')
ppp[885]: tun0: Chat: Failed to open device
ppp[885]: tun0: Phase: deflink: Enter pause (30) for redialing.

	
>How-To-Repeat:
ppp -quiet -ddial -nat tdsl

Configuration (/etc/ppp/ppp.conf) is:
default:
  set log Phase Chat LCP IPCP CCP tun command
  ident user-ppp VERSION (built COMPILATIONDATE)
  set device /dev/cuaa1
       
tdsl:
  set device PPPoE:xl1
  set authname "topsecret"
  set authkey  "secret,too"
  add default HISADDR
  set dial
  set login
  set timeout 0

/etc/rc.conf excerpt:
ifconfig_xl1="media 10baseT/UTP up"

(this works around another autonegotiation bug in xl1 that prevents
 pppoe when media is at auto, the default).

	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Gleb Smirnoff <glebius@freebsd.org>
To: Matthias Andree <matthias.andree@web.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/71424: user-ppp broken again - maybe xl(4) or ng_* bug?
Date: Mon, 6 Sep 2004 21:38:24 +0400

   Matthias,
 
 Isn't this duplicate of kern/69133 ?
 
 MA >5-CURRENT was fine recently
 
 What do you mean? Post kern/69133 CURRENT was fixed for some time?
 Can you give at least approximate dates?
 

From: Matthias Andree <matthias.andree@gmx.de>
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: Matthias Andree <matthias.andree@web.de>,
	FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/71424: user-ppp broken again - maybe xl(4) or ng_* bug?
Date: Tue, 7 Sep 2004 04:26:44 +0200

 On Mon, 06 Sep 2004, Gleb Smirnoff wrote:
 
 > Isn't this duplicate of kern/69133 ?
 
 No it isn't. kern/69133 is about the interface or netgraph not seeing
 the data packets if autonegotiation on the xl(4) interface is enabled
 (default setting), this is about user-ppp not getting the proper
 netgraph node type and aborting before even trying to communicate.
 
 > MA >5-CURRENT was fine recently
 > 
 > What do you mean? Post kern/69133 CURRENT was fixed for some time?
 > Can you give at least approximate dates?
 
 No, the problem in kern/69133 has apparently persisted, but I worked
 around it by forcing the xl1 interface to 10baseT/UTP as written in PR
 #69133. I was about to re-check if the problem persisted in BETA3 but
 found out that it now fails even earlier, before we get to the point
 where we might see problem #69133. Hence this new report.
 
 I'll quote the interesting part again, watch the "Unexpected node type"
 and Failed to open device:
 
 > M> ppp[885]: tun0: Phase: bundle: Establish
 > M> ppp[885]: tun0: Phase: deflink: closed -> opening
 > M> ppp[885]: tun0: Warning: xl1: Unexpected node type ``'' (wanted ``ether'')
 > M> ppp[885]: tun0: Chat: Failed to open device
 > M> ppp[885]: tun0: Phase: deflink: Enter pause (30) for redialing.
 
 -- 
 Matthias Andree

From: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc: Gleb Smirnoff <glebius@freebsd.org>,
	Matthias Andree <matthias.andree@gmx.de>
Subject: Re: kern/71424: user-ppp broken again - maybe xl(4) or ng_* bug?
Date: Tue, 7 Sep 2004 05:30:27 +0200

 OK, this is a consequential error, the dependency information in the
 baseline code is incomplete so that netgraph users don't get recompiled
 or relinked. This /usr/src/UPDATING entry is incomplete, it should list
 the full source path to enter for "make clean all install" and all
 affected utilities and should drop the word "slightly":
 
 20040826:
         Netgraph changed its message format slightly to align the data
         portion well on 64 bit machines.
         Netgraph using utilities (e.g. ngctl, nghook, ppp, mpd,
         pppoed, bluetooth, ATM) should be recompiled when a new kernel
         is installed.
 
 After manually fixing this up, user-mode ppp works for me with the
 limitation shown in kern/69133, which persists.
 
 Please add proper dependency information to the base system so that
 ngctl, nghook et al. are automatically recompiled after the message
 format change. Thank you.
State-Changed-From-To: open->closed 
State-Changed-By: glebius 
State-Changed-When: Tue Sep 7 08:02:08 GMT 2004 
State-Changed-Why:  
Half of PR was error from submitter side, half is duplicate 
of another PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71424 

From: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc: Matthias Andree <matthias.andree@gmx.de>
Subject: Re: kern/71424: user-ppp broken again - maybe xl(4) or ng_* bug?
Date: Tue, 7 Sep 2004 05:30:27 +0200

 OK, this is a consequential error, the dependency information in the
 baseline code is incomplete so that netgraph users don't get recompiled
 or relinked. This /usr/src/UPDATING entry is incomplete, it should list
 the full source path to enter for "make clean all install" and all
 affected utilities and should drop the word "slightly":
 
 20040826:
         Netgraph changed its message format slightly to align the data
         portion well on 64 bit machines.
         Netgraph using utilities (e.g. ngctl, nghook, ppp, mpd,
         pppoed, bluetooth, ATM) should be recompiled when a new kernel
         is installed.
 
 After manually fixing this up, user-mode ppp works for me with the
 limitation shown in kern/69133, which persists.
 
 Please add proper dependency information to the base system so that
 ngctl, nghook et al. are automatically recompiled after the message
 format change. Thank you.
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 
>Unformatted:
