[Click] some question about Click router

Eddie Kohler kohler at icir.org
Mon Jun 30 16:21:44 EDT 2003


Hi Lan,

> i was wondering how to specify keywords when use an element,
> e.g, FromDevice(), i wanted to use FORCE_IP with FromDevice(eth0, 0,
> 2046, FORCE_IP), however, the compiler complains that i used too many
> arguments. i also tried FromDevice(eth0, FORCE_IP), doesn't work either.

Keyword arguments always require values. The FORCE_IP keyword argument has
type boolean (it says that on the man page), so you should say "FORCE_IP
true".

Let us know if this doesn't work.
Eddie


More information about the click mailing list