Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2005 21:08:17 +0200
From:      ComteZero _ <comte0@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   how to modify OpenBSD pppoe discovery ?
Message-ID:  <1d881b2f05091812085ef72335@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

hello,

I use a 3Com ADSL Modem HomeConnect. 3Com made something really stupid, the 
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, 
but under OpenBSD, I can't find this feature.

Do you know how I can modify (and where) the discovery packet value in 
source code under OpenBSD ?

Thx, 

http://www.free.bsd.com.br/noticia.php3?CAD=1&NOT=82

--- ng_pppoe.h.orig	Wed Jun 27 23:19:34 2001
+++ ng_pppoe.h	Thu Jun 28 06:57:20 2001

@@ -148,8 +148,8 @@
 #define PTT_SYS_ERR  	(0x0202)
 #define PTT_GEN_ERR  	(0x0203)
 
-#define ETHERTYPE_PPPOE_DISC	0x8863	/* pppoe discovery packets     */

-#define ETHERTYPE_PPPOE_SESS	0x8864	/* pppoe session packets       */

+#define ETHERTYPE_PPPOE_DISC	0x3c12	/* pppoe discovery packets     */
+#define ETHERTYPE_PPPOE_SESS	0x3c13	/* pppoe session packets       */

 #else
 #define PTT_EOL		(0x0000)
 #define PTT_SRV_NAME	(0x0101)

@@ -162,8 +162,8 @@
 #define PTT_SYS_ERR  	(0x0202)
 #define PTT_GEN_ERR  	(0x0302)
 
-#define ETHERTYPE_PPPOE_DISC	0x6388	/* pppoe discovery packets     */

-#define ETHERTYPE_PPPOE_SESS	0x6488	/* pppoe session packets       */

+#define ETHERTYPE_PPPOE_DISC	0x123c	/* pppoe discovery packets     */
+#define ETHERTYPE_PPPOE_SESS	0x133c	/* pppoe session packets       */

 #endif
 
 struct pppoe_tag {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d881b2f05091812085ef72335>