Hi!! I want to find out whether a given IP address lies in a particular range of ip addresses..The range may be wide enough to include class A,B and C addresses together..All the ip addresses are in the form of character strings..I tried converting them to in_addr structure and then comparing the results..But it's not giving me the correct answer..How is this possible??? Thanx in advance, Paridhi __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/