From owner-freebsd-net@FreeBSD.ORG Sat Aug 26 00:02:49 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 A0A9F16A4E5 for ; Sat, 26 Aug 2006 00:02:49 +0000 (UTC) (envelope-from prvs=julian=386edef67@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D0743D46 for ; Sat, 26 Aug 2006 00:02:49 +0000 (GMT) (envelope-from prvs=julian=386edef67@elischer.org) Received: from unknown (HELO [192.168.2.6]) ([10.251.60.50]) by a50.ironport.com with ESMTP; 25 Aug 2006 17:02:48 -0700 Message-ID: <44EF8FA9.3090508@elischer.org> Date: Fri, 25 Aug 2006 17:02:49 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rajkumar S References: <64de5c8b0608250849p2912457cs84c227cc914d1f10@mail.gmail.com> In-Reply-To: <64de5c8b0608250849p2912457cs84c227cc914d1f10@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Netgraph plumbing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2006 00:02:49 -0000 Rajkumar S wrote: > Hi, > > In the ng_split node is it possible to merge 2 incoming streams into > mixed, while all packets received at mixed goes via out? If merge node > does not support that, is there any other way to get the same result? this is used to separate the streams going in different directions. for example: (fixed fomt needed) _____________ <-----A-------[ ng_split ]<-----A------ ------B------>[ ] ~~~~~~~~~~~~~ | B | v you can also use ng_tee for this sort of thing. e.g. _____________ <-----A&C-----[ ng_tee ]<-----A------ ------B------>[ ]------B------> ~~~~~~~~~~~~~ |^ |^ v| B| ## |C v| in addition arbtrarily complicated switching can be done with the ng_bpf node though it takes more to set it up. there may be other nods that can do what you want too.. check out all the nodes give by: man -k ng_ or it is easy to write your own, starting with /usr/src/sys/netgraph/ng_sample.c > > regards, > > raj > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"