RE: IP Address Range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ntohl.
I am guessing you are working on an x86 platform which needs
swapping of the result of in_addr, which is network order.

> -----Original Message-----
> From: kernelnewbies-bounce@nl.linux.org 
> [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of paridhi bansal
> Sent: Monday, January 13, 2003 6:08 AM
> To: kernelnewbies@nl.linux.org
> Subject: IP Address Range
> 
> 
> 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/
> 
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux