diff options
Diffstat (limited to 'tools/tools/netmap/click-test.cfg')
-rw-r--r-- | tools/tools/netmap/click-test.cfg | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/tools/netmap/click-test.cfg b/tools/tools/netmap/click-test.cfg new file mode 100644 index 000000000000..fc5759f88b1e --- /dev/null +++ b/tools/tools/netmap/click-test.cfg @@ -0,0 +1,19 @@ +// +// $FreeBSD$ +// +// A sample test configuration for click +// +// +// create a switch + +myswitch :: EtherSwitch; + +// two input devices + +c0 :: FromDevice(ix0, PROMISC true); +c1 :: FromDevice(ix1, PROMISC true); + +// and now pass packets around + +c0[0] -> [0]sw[0] -> Queue(10000) -> ToDevice(ix0); +c1[0] -> [1]sw[1] -> Queue(10000) -> ToDevice(ix1); |