forked from kohler/click
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I ran the ponger.click example configuration using click-ctl and I didn't stop or remove the router before rebooting. When I went back into the console with 'xl console click0' It was just a stream of "+++++++++++++++++++++ we have extras!"
Using Xen version 4.2.1
name = 'clickos'
kernel = 'path-to-clickos/minios/build/clickos_x86_64'
vcpus = '1'
#cpus = '3'
memory = '8'
vif = ['mac=00:15:17:15:5d:74,bridge=xenbr0']
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'preserve'
click = 'mirror.click'
define($IP 10.10.0.3);
define($MAC 00:15:17:15:5d:75);
source :: FromDevice;
sink :: ToDevice;
// classifies packets
c :: Classifier(
12/0806 20/0001, // ARP Requests goes to output 0
12/0806 20/0002, // ARP Replies to output 1
12/0800, // ICMP Requests to output 2
-); // without a match to output 3
arpq :: ARPQuerier($IP, $MAC);
arpr :: ARPResponder($IP $MAC);
source -> c;
c[0] -> ARPPrint -> arpr -> sink;
c[1] -> [1]arpq;
Idle -> [0]arpq;
arpq -> ARPPrint -> sink;
c[2] -> CheckIPHeader(14) -> ICMPPingResponder() -> EtherMirror() -> sink;
c[3] -> Discard;
Metadata
Metadata
Assignees
Labels
No labels