Question re IPs-to-CIDR conversion program

2008-08-01 Thread Mark Wilson

 I'm trying to write a program that will take 2 IPs and return an appropriate 
CIDR which contains both.
I found this file: ips-to-cidr-nets.pl listed under ~eivind on FreeBSD, which 
sounds like it might be a good model.
Unfortunately, I can't download the file (get Forbidden) page, nor locate 
user eivind on the FreeBSD Homepages page to ask him/her about it.
(It's dated 2001, in case that helps; apparently eivind is long gone...)

1. Can anyone get me a copy of this program? Or...
2. Put me in touch with its author so I can ask about it?? Or...
3. Point me to another program which does what I need?

Thanks. I'm very new to all this; I was able to cobble together a CIDR-to-IPs 
calculator in JavaScript, but going this other direction seems much harder, and 
far more confusing.


 


---
Mark Wilson, CPUWORKS.COM
[EMAIL PROTECTED]
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question re IPs-to-CIDR conversion program

2008-08-01 Thread Paul Procacci

Mark Wilson wrote:

 I'm trying to write a program that will take 2 IPs and return an appropriate 
CIDR which contains both.
I found this file: ips-to-cidr-nets.pl listed under ~eivind on FreeBSD, which 
sounds like it might be a good model.
Unfortunately, I can't download the file (get Forbidden) page, nor locate user 
eivind on the FreeBSD Homepages page to ask him/her about it.
(It's dated 2001, in case that helps; apparently eivind is long gone...)

1. Can anyone get me a copy of this program? Or...
2. Put me in touch with its author so I can ask about it?? Or...
3. Point me to another program which does what I need?

Thanks. I'm very new to all this; I was able to cobble together a CIDR-to-IPs 
calculator in JavaScript, but going this other direction seems much harder, and 
far more confusing.


 



---
Mark Wilson, CPUWORKS.COM
[EMAIL PROTECTED]
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  

You may want to look at ipcalc (/usr/ports/net-mgmt/ipcalc)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question re IPs-to-CIDR conversion program

2008-08-01 Thread Duane Hill

On Fri, 1 Aug 2008, Mark Wilson wrote:



I'm trying to write a program that will take 2 IPs and return an appropriate 
CIDR which contains both.
I found this file: ips-to-cidr-nets.pl listed under ~eivind on FreeBSD, which 
sounds like it might be a good model.
Unfortunately, I can't download the file (get Forbidden) page, nor locate user 
eivind on the FreeBSD Homepages page to ask him/her about it.
(It's dated 2001, in case that helps; apparently eivind is long gone...)

1. Can anyone get me a copy of this program? Or...
2. Put me in touch with its author so I can ask about it?? Or...
3. Point me to another program which does what I need?

Thanks. I'm very new to all this; I was able to cobble together a CIDR-to-IPs 
calculator in JavaScript, but going this other direction seems much harder, and 
far more confusing.


If you know anything about Perl, you can use the port:

  /usr/ports/net/p5-Net-CIDR-Lite

to convert back-and-forth. For documentation, I referred to:

  http://search.cpan.org/dist/Net-CIDR-Lite/Lite.pm

-d
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question re IPs-to-CIDR conversion program

2008-08-01 Thread Warren Block

On Fri, 1 Aug 2008, Mark Wilson wrote:


I'm trying to write a program that will take 2 IPs and return an appropriate 
CIDR which contains both.

3. Point me to another program which does what I need?


Net::CIDR has a range2cidr method that will do that.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]