]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/netmap/click-test.cfg
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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);