Skip to content

ninjakoala/cidr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojars Project Build Status

(ns your.namespace
  (:require [cidr.core :as cidr]))

(cidr/in-range? "192.168.0.1" "192.168.0.0/24") ; => true
(cidr/in-range? "192.167.0.1" "192.168.0.0/24") ; => false

(cidr/completely-in-range? "192.168.0.0/24" "192.168.0.0/16") ; => true

(cidr/overlap? "192.168.0.1/25" "192.168.0.1/24") ; => true
  

cidr

General utilities for dealing with CIDR.

Acknowledgements

Massive thanks must go to Keith Irwin for allowing me to lift the original code and package it up in to a library.

License

Copyright © 2015 Neil Prosser

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure library for dealing with CIDR ranges

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published