Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 16:37:37 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Lars Eggert <larse@ISI.EDU>
Cc:        net@FreeBSD.ORG
Subject:   Re: netgraph documentation?
Message-ID:  <200205312337.g4VNbbs03438@arch20m.dellroad.org>
In-Reply-To: <3CF7AD4D.2090801@isi.edu> "from Lars Eggert at May 31, 2002 10:05:17 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




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