[Click] Problem with ToHost/FromHost
marco.wenzel@stud.tu-ilmenau.de
marco.wenzel at stud.tu-ilmenau.de
Tue Nov 14 11:25:56 EST 2006
Hi Jason,
thanks for your reply. Here is a simple configuration which I used for testing
ToHost/FromHost:
AddressInfo(fake 10.10.1.10/24 eth2:eth);
from_host :: FromHost(fake0, fake, ETHER fake);
from_cl :: Classifier(12/0806, 12/0800);
from_host -> from_cl;
from_cl[0] -> Print(arp)
-> ARPResponder(0.0.0.0/0 1:1:1:1:1:1)
-> ToHost(fake0);
from_cl[1] -> Print(to_dev)
-> Queue(200)
-> ToDevice(eth2);
FromDevice(eth2) -> ToHost(fake0);
When loading this configuration into the kernel, and start pinging from another
machine to eth2, Click says:
chatter: to_host: 42 | ffffffff ffff00e0 6382a0c2 08060001 08000604 000100e0
chatter: to_host: 42 | ffffffff ffff00e0 6382a0c2 08060001 08000604 000100e0
chatter: to_host: 42 | ffffffff ffff00e0 6382a0c2 08060001 08000604 000100e0
chatter: to_host: 42 | ffffffff ffff00e0 6382a0c2 08060001 08000604 000100e0
The following output results from "tcpdump -i fake0":
listening on fake0, link-type EN10MB (Ethernet), capture size 68 bytes
18:03:53.955382 IP 10.10.1.40 > 10.10.1.10: ICMP echo request, id 512, seq 9472,
length 40
18:03:59.312869 IP 10.10.1.40 > 10.10.1.10: ICMP echo request, id 512, seq 9728,
length 40
18:04:04.813422 IP 10.10.1.40 > 10.10.1.10: ICMP echo request, id 512, seq 9984,
length 40
18:04:10.313950 IP 10.10.1.40 > 10.10.1.10: ICMP echo request, id 512, seq
10240, length 40
2 packets captured
4 packets received by filter
0 packets dropped by kernel
I get similar results, when using FTP or SSH. Packets are sent to the
fake-device, but can not be fetched from it. For me, the configuration seems to
be correct. Maybe you can find any mistakes I made?
Best Regards,
Marco.
Jason Haas <jjhaas at gmail.com> wrote:
> Hi Marco,
>
> It's hard to say what's happening initially. You can try inserting Print
> elements in your configuration and see where packets go. Also, try using
> tcpdump/ethereal to try to figure out what's going wrong. Posting you
> configuration file may also help us help you.
>
> Jason Haas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the click
mailing list