Class Subnet

java.lang.Object
org.apache.mina.filter.firewall.Subnet

public class Subnet extends Object
A IP subnet using the CIDR notation. Currently, only IP version 4 address are supported.
  • Field Details

    • subnetUtils

      private SubnetUtils subnetUtils
    • subnetUtils6

      private SubnetUtils6 subnetUtils6
    • isIpv6

      boolean isIpv6
  • Constructor Details

    • Subnet

      public Subnet(InetAddress subnet, int mask)
      Creates a subnet from CIDR notation. For example, the subnet 192.168.0.0/24 would be created using the InetAddress 192.168.0.0 and the mask 24.
      Parameters:
      subnet - The InetAddress of the subnet
      mask - The mask
  • Method Details