From owner-freebsd-net@FreeBSD.ORG Sun Sep 18 19:08:20 2005 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 26B6E16A41F for ; Sun, 18 Sep 2005 19:08:20 +0000 (GMT) (envelope-from comte0@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8182C43D53 for ; Sun, 18 Sep 2005 19:08:19 +0000 (GMT) (envelope-from comte0@gmail.com) Received: by nproxy.gmail.com with SMTP id a4so274355nfc for ; Sun, 18 Sep 2005 12:08:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=BxRJLUkt+F2JLW1jfSQPDCQbvx7joz/3bVCyiravWaTmLdrRIHnGxBjCh/txQvC3sutxsHz/fGUBGqZR0sNX+kKkD0zO/cyO/66T21ng20rf2iHIi0X+LvsTpLBFUxkFXOfz4xebNuH4XmZhUvalw+EWowbeLQeXVF1xEDD4uG0= Received: by 10.48.3.12 with SMTP id 12mr46683nfc; Sun, 18 Sep 2005 12:08:17 -0700 (PDT) Received: by 10.48.157.6 with HTTP; Sun, 18 Sep 2005 12:08:17 -0700 (PDT) Message-ID: <1d881b2f05091812085ef72335@mail.gmail.com> Date: Sun, 18 Sep 2005 21:08:17 +0200 From: ComteZero _ To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to modify OpenBSD pppoe discovery ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: comte0@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 19:08:20 -0000 hello, I use a 3Com ADSL Modem HomeConnect. 3Com made something really stupid, the= =20 modem do not comply with PPPoE RFC standards in discovery packet. Under FreeBSD, there is an option to tell the system that we use this modem= ,=20 but under OpenBSD, I can't find this feature. Do you know how I can modify (and where) the discovery packet value in=20 source code under OpenBSD ? Thx,=20 http://www.free.bsd.com.br/noticia.php3?CAD=3D1&NOT=3D82 --- ng_pppoe.h.orig=09Wed Jun 27 23:19:34 2001 +++ ng_pppoe.h=09Thu Jun 28 06:57:20 2001 @@ -148,8 +148,8 @@ #define PTT_SYS_ERR =09(0x0202) #define PTT_GEN_ERR =09(0x0203) =20 -#define ETHERTYPE_PPPOE_DISC=090x8863=09/* pppoe discovery packets */ -#define ETHERTYPE_PPPOE_SESS=090x8864=09/* pppoe session packets */ +#define ETHERTYPE_PPPOE_DISC=090x3c12=09/* pppoe discovery packets */ +#define ETHERTYPE_PPPOE_SESS=090x3c13=09/* pppoe session packets */ #else #define PTT_EOL=09=09(0x0000) #define PTT_SRV_NAME=09(0x0101) @@ -162,8 +162,8 @@ #define PTT_SYS_ERR =09(0x0202) #define PTT_GEN_ERR =09(0x0302) =20 -#define ETHERTYPE_PPPOE_DISC=090x6388=09/* pppoe discovery packets */ -#define ETHERTYPE_PPPOE_SESS=090x6488=09/* pppoe session packets */ +#define ETHERTYPE_PPPOE_DISC=090x123c=09/* pppoe discovery packets */ +#define ETHERTYPE_PPPOE_SESS=090x133c=09/* pppoe session packets */ #endif =20 struct pppoe_tag {