Project

iparith

0.0
No release in over a year
IP manipulations, based on ipaddr gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

iparith

ip arithmometer, based on ipaddr gem.

usage

validations

IPArith.macstr_valid?

string is valid mac address without delimeters

IPArith.ipstr_valid?

string is parseble ip address

IPArith.prefix_valid?

string is valid ip prefix, which means has all zero bits where bits in mask are zero

parsers

IPArith.parse_macstr

return mac address without delimeters or nil if parse failed