[Click] Help with click socket element

Eddie Kohler kohler at cs.ucla.edu
Mon Oct 3 20:17:53 EDT 2005


Swati

Are you using the current anonymous CVS version of Click?  Socket is  
not provided with click-1.4.whatever, only with the current version.

Eddie



On Oct 3, 2005, at 6:56 AM, Swati Sinha Deb wrote:

> Hi,
>
> I am trying to capture packets and write it to a socket. I want to  
> use the click's Socket element. Can you please let me know where  
> the Socket userlevel element is located? I tried to look at the  
> userlevel package but could not find it.
>
> On the other hand if I try to use the ToSocket click element  
> provided at the userlevel I get the following errors:
> expensive Packet::push; have 2 wanted 4
> ToSocket: sendto: Bad file descriptor
>
> Below is my click configuration:
>
> FromDevice(eth3)->SetTimestamp()->Print(OK, 2000, TIMESTAMP true)- 
> >ToSocket("TCP", 0.0.0.0, 1500, VERBOSE true)->Discard;
>
> Any advice on the above issues will be highly appreciated.
>
> Thanks.
>
> Regards,
> Swati
>
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



More information about the click mailing list