Hi ppl!! Thanx for prompt help. Is there a way out to convert the IP address in in_addr format to binary form so that i can AND two IP addresses. or is there some other way out to AND two IP addresses. Paridhi __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/