[Click] how to print debug messages

Roman Chertov rchertov at purdue.edu
Mon Jan 7 22:10:04 EST 2008


You should be able to do -> Print("on Port1") ->
The label is your custom print message.



sam barker wrote:
> 
> Hi Roman,
> I don't want to print the contents of the packet,but a message that the 
> packet has come to particular port or element..
> 
> 
> On Jan 8, 2008 1:47 PM, Roman Chertov < rchertov at purdue.edu 
> <mailto:rchertov at purdue.edu>> wrote:
> 
>     Print element does that.
> 
>     http://www.read.cs.ucla.edu/click/elements/print
> 
>     sam barker wrote:
>      > Hi,
>      > Is there an element which can print out messages..
>      > For example if a packet was received on port 1 , I want to print
>     the message
>      > "Currently in port 1 " on the screen.
>      >
>      > Regards,
>      > Sam
>      > _______________________________________________
>      > click mailing list
>      > click at amsterdam.lcs.mit.edu <mailto:click at amsterdam.lcs.mit.edu>
>      > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>      >
> 
> 


More information about the click mailing list