From owner-freebsd-net@FreeBSD.ORG Tue Apr 19 12:56:27 2005 Return-Path: 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 ACE6316A4CE for ; Tue, 19 Apr 2005 12:56:27 +0000 (GMT) Received: from rissala173.outgw.tn (rissala175.outgw.tn [193.95.17.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 370D243D39 for ; Tue, 19 Apr 2005 12:56:26 +0000 (GMT) (envelope-from rayene.benrayana@topnet.tn) Received: from mail2.topnet.tn (smtp.topnet.tn [213.150.177.74]) Received: (qmail 4295 invoked by uid 107); 19 Apr 2005 12:56:12 -0000 Received: from localhost (HELO topnet.tn) (127.0.0.1) by localhost with SMTP; 19 Apr 2005 12:56:12 -0000 From: "Rayene Ben Rayana" To: freebsd-net@freebsd.org Date: Tue, 19 Apr 2005 14:56:12 +0200 Message-Id: 1113913633.77730.mail2.topnet.tn In-Reply-To: <20050419120104.053CA16A4CE@hub.freebsd.org> References: <20050419120104.053CA16A4CE@hub.freebsd.org> X-Mailer: Open WebMail 2.21 20031118 X-OriginatingIP: 193.52.74.177 (rayene.benrayana@topnet.tn) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Implementing a PPP/L2TP stack using Netgraph X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 12:56:27 -0000 Hi everybody, I'm trying to connect an IPv6 streaming client to an IPv6 server through a GPRS connection. The client protocol stack should be like this RTP / UDP / IPv6 / PPP(client) / L2TP / UDP / IPv4 / PPP (kernel) / Bluetooth For the moment, I've to implement this one to test. RTP / UDP / IPv6 / PPP(client) / L2TP / UDP / IPv4 / ethernet Ooof I've read some man pages and I think that the netgraph's graph should be like this. ng_socket (/inet6/dgram/UDP) connected to ng_ppp (Inet) ng_ppp (bypass) connected to PPP daemon (???) ng_ppp (link1) connected to ng_l2tp (Session_0001) ng_l2tp (ctrl) connected to ControlEntity (???) ng_l2tp (lower) connected to UDP /IP (but how) IP connected to ng_ether (Upper) Doesn't look to be good :( Please help me. I promise to write a tutorial for the newbies if this works.