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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to