From owner-freebsd-net Fri May 31 16:45:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 4DA8C37B403 for ; Fri, 31 May 2002 16:45:04 -0700 (PDT) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id QAA59538; Fri, 31 May 2002 16:38:34 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g4VNbbs03438; Fri, 31 May 2002 16:37:37 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200205312337.g4VNbbs03438@arch20m.dellroad.org> Subject: Re: netgraph documentation? In-Reply-To: <3CF7AD4D.2090801@isi.edu> "from Lars Eggert at May 31, 2002 10:05:17 am" To: Lars Eggert Date: Fri, 31 May 2002 16:37:37 -0700 (PDT) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Lars Eggert writes: > For starters, I was going to modify the UDP tunneling example in the > DaemonNews article to do TCP tunneling. However, I'm having problems > getting the "server" side of the TCP tunnel to listen on the ksocket: > > /usr/sbin/ngctl mkpeer iface dummy inet > /usr/sbin/ngctl mkpeer ng3: ksocket inet inet/stream/tcp > /usr/sbin/ngctl msg ng3:inet bind inet/10.0.0.1:50505 > /usr/sbin/ngctl msg ng3:inet listen 1 > ngctl: send msg: Operation not supported by device > > So I guess I have two questions: > > 1. Is there some other netgraph documentation out > there that I don't knowe about? Not really.. each node has a man page, but the text form of the control messages is not very well documented. > 2. Why can't I listen on a ksocket? What you are doing is correct, I don't know why you are getting that error. The error is coming from solisten(). However, when I try this the listen operation does actually succeed as witnessed by 'netstat -na -f inet'. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message