Netgraph plumbing question
Julian Elischer
julian at elischer.org
Sat Aug 26 00:02:49 UTC 2006
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list