On Fri, Dec 12, 2003 at 03:32:20PM +0800, Vanitha Ramaswami wrote: |Hi All, | | How do i print the error string returned by the sock_sendmsg system call | invoked from a kernel module. Looks like: you can't since there is no "strerror" in kernel source |The error code is returned as -101. | I am trying to send a packet thro a udp socket. | | | Is this Network unreachable error..?? no, error code 110 is ETIMEDOUT: /* Connection timed out */ (take a look at: include/asm-i386/errno.h) hope these helps. -- Daniele. "I could have made money this way, and perhaps amused myself writing code. But I knew that at the end of my career, I would look back on years of building walls to divide people, and feel I had spent my life making the world a worse place." Richard Stallman -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/