Polling Linux

Tim Wilson timwilson at mediaone.net
Sat Aug 18 20:59:09 EDT 2001


>> My question: why is it Idle->ToDevice()? Doesn't that mean nothing
will
>> go out the interface? Wouldn't I rather use this:
>>
>> FromLinux(fake0, addr/mask)->ToDevice(eth0)
>>
>> (Also, according to the doc page for FromLinux, I would also have to
add
>> an ARP responder).
>
>>Actually, ToDevice will automatically look for packets Linux sends to
the
>>device and send them. (It does this when there aren't many Click
packets to
>>send -- which, with Idle, there aren't.) No need for the FromLinux.


So apparently ToDevice figures out if the device is polling-capable, and
acts appropriately?

I tried the Idle -> ToDevice() setup and I did get packets in and out of
the box. I haven't verified that the polling works yet because the
machine I have here doesn't polling-supported Ethernet card. That'll
have to wait until Monday.

I also tried this setup, just for fun:

cl::Classifier(12/0806, 12/0800);

FromLinux(fake0, 192.168.1.101/24) ->  cl;
cl[0] -> ARPResponder(0.0.0.0/0 1:1:1:1:1:1) -> ToLinux;
cl[1] -> Queue -> ToDevice(eth0);


(And I changed the kernel routing table to send stuff out fake0).

That didn't work at all--I can see stuff going out fake0, but nothing
goes out eth0. The ARPResponder is working (as I can see from looking at
the arp table). Should this work? What have I done wrong?

Sorry if these questions are newbie, but I've just started looking at
this code and I'm trying to get my feet on the ground.







More information about the click mailing list