[Click] FromHost
Roman Chertov
rchertov at purdue.edu
Tue May 9 15:09:43 EDT 2006
Hello,
I am trying to use FromHost to create an artificial delay before the
packet leaves the machine. I have set the actual device (eth1) into
promisc mode with a 0.0.0.0 IP. Then I install the click script. The
modified routing table looks correct.
> ip route
192.18.2.0/24 dev fake0 proto kernel scope link src 192.18.2.52
198.133.225.0/24 dev eth0 proto kernel scope link src 198.133.225.62
169.254.0.0/16 dev lo scope link
127.0.0.0/8 dev lo scope link
default via 198.133.225.1 dev eth0
However, when I try to send packets destined to the 192.18.2.0/24 subnet
they end up being sent to the default route which is another interface.
Any suggestions would be welcome.
Roman
/// Click Config
from :: FromHost(fake0, 192.18.2.52/24, ETHER 00:00:B3:BF:26:AA);
from_cl :: Classifier(12/0806, 12/0800);
from -> Print -> from_cl; // separate IP and ARP packets
from_cl[0] -> ARPResponder(192.18.2.52/24 00:02:3:F:6:A) -> ToHost;
from_cl[1] -> Queue(200)
-> Print
-> LinkUnqueue(0.04s, 10000Mbps)
-> Queue(200)
-> ToDevice(eth1);
PollDevice(eth1) -> Queue(200)
-> LinkUnqueue(0.04s, 10000Mbps)
-> ToHost;
More information about the click
mailing list