Hi Tom, You really, truly can't use userlevel headers in kernel mode. The kernel does not support many of the C library's functions. For rand() and srand(), though, you're in luck. The Click library itself defines versions of random() and srandom(). Just #include <click/glue.hh>. Eddie