IPSubnet

fm.common.IPSubnet$
See theIPSubnet companion class
object IPSubnet

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(subnet: String): IPSubnet
def forCIDR(ip: IP, prefix: Int): IPSubnet
def forMask(ip: IP, mask: IP): IPSubnet
def forRange(from: IP, to: IP): IPSubnet
def forRangeOrMask(from: IP, toOrMask: IP): IPSubnet
def get(ip: String): Option[IPSubnet]
def isValidCIDR(ip: IP, prefix: Int): Boolean

Attributes

ip

The IP Address (e.g. 10.10.123.0)

prefix

The mask bits (e.g. 24)

Returns:

Whether or not this is a valid subnet

def isValidMask(ip: IP): Boolean
def isValidRange(from: IP, to: IP): Boolean
def parse(subnet: String): IPSubnet

Concrete fields