]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/tools/netmap/click-test.cfg
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / tools / tools / netmap / click-test.cfg
1 //
2 // $FreeBSD$
3 //
4 // A sample test configuration for click
5 //
6 //
7 // create a switch
8
9 myswitch :: EtherSwitch;
10
11 // two input devices
12
13 c0 :: FromDevice(ix0, PROMISC true);
14 c1 :: FromDevice(ix1, PROMISC true);
15
16 // and now pass packets around
17
18 c0[0] -> [0]sw[0] -> Queue(10000) -> ToDevice(ix0);
19 c1[0] -> [1]sw[1] -> Queue(10000) -> ToDevice(ix1);