[Click] [Solved] input string in an handler

Eddie Kohler kohler at cs.ucla.edu
Fri Jul 25 18:10:18 EDT 2008


Cool, thanks for letting me know.  More information about why 
EtherSwitch/SpanTree is broken in the latest code would be useful.  I don't off 
the top of my head know of an MSTP implementation for Click.  But searching for 
"MSTP click modular" turns up a bunch of hits.

Eddie


remi.clavier at orange-ftgroup.com wrote:
> Sorry, Eddy, it's a mistake from me...
> The error was not related to this function but to a char[] too small... And a bad verification in a strncpy...
> 
> Sorry to increase the noise on the list for dummy  and stupid problems 
> 
> Regards.
> 
> PS, Do You know if a MSTP SpanTree exist for click?
> 
> 
> 
> -----Message d'origine-----
> De : Eddie Kohler [mailto:kohler at cs.ucla.edu] 
> Envoyé : mercredi 23 juillet 2008 20:33
> À : CLAVIER Remi RD-CORE-LAN
> Cc : click at amsterdam.lcs.mit.edu
> Objet : Re: [Click] input string in an handler
> 
> Rémi,
> 
> Can you please send a complete write handler function?  I can't replicate this problem.  Are you sure that args[5] exists (that args.size() >= 6)?
> 
> Eddie
> 
> 
> remi.clavier at orange-ftgroup.com wrote:
>>  I experience without proble to input (and verify) integer and long values in a write handler.
>> But now, I'm not able to read a string.
>> Each try solve by a "segmentation fault".
>> It's a exemple to do that...
>> Somthing like in a tatic function of the handler)
>>
>> cp
>> String s;
>> if (!cp_string(args[5],&s){return errh->error("unable to read the 
>> parameter number 4"); ... Use s String
>>
>> Thanks
>>
>> Rémi
>>
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list