[Click] Misc questions about Click

Eddie Kohler kohler at CS.UCLA.EDU
Tue Apr 27 21:46:33 EDT 2004


Hi Paolo,

> 1) i tried a couple of examples presented on the web site but i 
> couldn't
> make the tun stuff work.
> To put it simple:
>
> KernelTun creates the tun interface and open the appropriate tun 
> device,
> and while i can send packet to the net interface, it doesn't return 
> anything.
>
> I'm using FreeBSD as host OS, and i'm talking about the test-tun 
> example.
> I didn't make any modification to the example, and it doesn't emit
> anything (as it should do if everything is ok).

What version of FreeBSD?  On FreeBSD 4.8-RELEASE, 'click 
conf/test-tun.click' (the current anonymous CVS version of Click) works 
for me.  Note that you must be root to run the program successfully.
>
> 2) I've to create a lot of different packets from different sources, 
> and right now
> i'm using InfiniteSource for this, but then i've to multiplex somehow 
> all the packets and let
> them enter into a single node.
> How can i do that?
> Is there a sort of multiplexer node to do that?

There's no need for any node.  Do you understand the difference between 
'push' and 'pull'?  Your InfiniteSources are probably push elements, in 
which case they can all hook up to the same node directly, no problem: 
push inputs can be used multiple times.  So

   i1, i2, i3, i4 ... in :: InfiniteSource;
   n :: NextElementWhateverItIs;
   i1 -> n; i2 -> n; i3 -> n; ...; in -> n

Eddie

>
> I'll appreciate any suggestions,
> bye
>
> Paolo
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list