caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Sheets <sheets@alum.mit.edu>
To: Mihamina Rakotomandimby <mihamina@rktmb.org>
Cc: O Caml <caml-list@inria.fr>
Subject: Re: [Caml-list] exercice with subnets union
Date: Fri, 20 Sep 2013 13:20:29 +0100	[thread overview]
Message-ID: <CAAWM5TwA+dkwbZWKYTnTd8xpV3Ku6kHe7=QCEMi6Fs58dccT+g@mail.gmail.com> (raw)
In-Reply-To: <523C369F.5060200@rktmb.org>

On Fri, Sep 20, 2013 at 12:50 PM, Mihamina Rakotomandimby
<mihamina@rktmb.org> wrote:
> Hi all,
>
> I have a list of subnet: http://pastebin.com/e9LPv55K
> (These are Google IP ranges lokked up from his AS#)
>
> Some consecutive/adjacent "/24" could be "/23"'d and even multple
> consecutive "/24" coudl be "/18"'d and so on...
>
> Have you got in your bookmarks or notes some IP adresses manipulation
> functions, so that I could shorten that list?

Hi Mihamina,

You may be interested in ipaddr
<https://github.com/mirage/ocaml-ipaddr>, a very small OCaml library
for manipulation of IP address representations.

You can install ipaddr with

$ opam install ipaddr

Hope this helps,

David

> I would like to make that exercice in OCaml.
>
> Thank you.
>
> --
> RMA.

  reply	other threads:[~2013-09-20 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 11:50 Mihamina Rakotomandimby
2013-09-20 12:20 ` David Sheets [this message]
2013-09-20 13:00   ` David Sheets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAWM5TwA+dkwbZWKYTnTd8xpV3Ku6kHe7=QCEMi6Fs58dccT+g@mail.gmail.com' \
    --to=sheets@alum.mit.edu \
    --cc=caml-list@inria.fr \
    --cc=mihamina@rktmb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).