test_class.declarator: s_logger = LoggerFactory.getLogger(NetUtilsTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(NetUtilsTest.class);
test_class.type: Logger
test_class.var_name: s_logger
test_class.file: cosmic-common/src/test/java/com/cloud/utils/net/NetUtilsTest.java
test_class.identifier: NetUtilsTest
test_case.body: @Test
      public void testIsValidS2SVpnPolicy() {
          assertTrue(NetUtils.isValidS2SVpnPolicy("esp", "aes128-sha1"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("esp", "3des-sha1"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("esp", "3des-sha1,aes256-sha1"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("esp", "3des-md5;modp1024"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("esp", "3des-sha256,aes128-sha512;modp1536"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("ike", "3des-sha1;modp3072,aes128-sha1;modp1536"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("ike", "3des-md5;modp1024"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("ike", "3des-sha1;modp3072,aes128-sha1;modp1536"));
          assertTrue(NetUtils.isValidS2SVpnPolicy("ike", "3des-sha256;modp3072,aes128-sha512;modp1536"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("ike", "aes128-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("ike", "3des-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("ike", "3des-sha1,aes256-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", "des-md5;modp1024,aes128-sha1;modp1536"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", "des-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", "abc-123,ase-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", "de-sh,aes-sha1"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", ""));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", ";modp1536"));
          assertFalse(NetUtils.isValidS2SVpnPolicy("esp", ",aes;modp1536,,,"));
      }
test_case.class_method_signature: NetUtilsTest.testIsValidS2SVpnPolicy()
test_case.full_signature: @Test public void testIsValidS2SVpnPolicy()
test_case.identifier: testIsValidS2SVpnPolicy
test_case.invocations: assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertTrue isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy assertFalse isValidS2SVpnPolicy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsValidS2SVpnPolicy()
focal_class.declarator: HTTP_PORT = 80
focal_class.modifier: public final static
focal_class.original_string: public final static int HTTP_PORT = 80;
focal_class.type: int
focal_class.var_name: HTTP_PORT
focal_class.declarator: HTTPS_PORT = 443
focal_class.modifier: public final static
focal_class.original_string: public final static int HTTPS_PORT = 443;
focal_class.type: int
focal_class.var_name: HTTPS_PORT
focal_class.declarator: VPN_PORT = 500
focal_class.modifier: public final static
focal_class.original_string: public final static int VPN_PORT = 500;
focal_class.type: int
focal_class.var_name: VPN_PORT
focal_class.declarator: VPN_NATT_PORT = 4500
focal_class.modifier: public final static
focal_class.original_string: public final static int VPN_NATT_PORT = 4500;
focal_class.type: int
focal_class.var_name: VPN_NATT_PORT
focal_class.declarator: VPN_L2TP_PORT = 1701
focal_class.modifier: public final static
focal_class.original_string: public final static int VPN_L2TP_PORT = 1701;
focal_class.type: int
focal_class.var_name: VPN_L2TP_PORT
focal_class.declarator: HAPROXY_STATS_PORT = 8081
focal_class.modifier: public final static
focal_class.original_string: public final static int HAPROXY_STATS_PORT = 8081;
focal_class.type: int
focal_class.var_name: HAPROXY_STATS_PORT
focal_class.declarator: UDP_PROTO = "udp"
focal_class.modifier: public final static
focal_class.original_string: public final static String UDP_PROTO = "udp";
focal_class.type: String
focal_class.var_name: UDP_PROTO
focal_class.declarator: TCP_PROTO = "tcp"
focal_class.modifier: public final static
focal_class.original_string: public final static String TCP_PROTO = "tcp";
focal_class.type: String
focal_class.var_name: TCP_PROTO
focal_class.declarator: ANY_PROTO = "any"
focal_class.modifier: public final static
focal_class.original_string: public final static String ANY_PROTO = "any";
focal_class.type: String
focal_class.var_name: ANY_PROTO
focal_class.declarator: ICMP_PROTO = "icmp"
focal_class.modifier: public final static
focal_class.original_string: public final static String ICMP_PROTO = "icmp";
focal_class.type: String
focal_class.var_name: ICMP_PROTO
focal_class.declarator: ALL_PROTO = "all"
focal_class.modifier: public final static
focal_class.original_string: public final static String ALL_PROTO = "all";
focal_class.type: String
focal_class.var_name: ALL_PROTO
focal_class.declarator: HTTP_PROTO = "http"
focal_class.modifier: public final static
focal_class.original_string: public final static String HTTP_PROTO = "http";
focal_class.type: String
focal_class.var_name: HTTP_PROTO
focal_class.declarator: SSL_PROTO = "ssl"
focal_class.modifier: public final static
focal_class.original_string: public final static String SSL_PROTO = "ssl";
focal_class.type: String
focal_class.var_name: SSL_PROTO
focal_class.declarator: ALL_IP4_CIDRS = "0.0.0.0/0"
focal_class.modifier: public final static
focal_class.original_string: public final static String ALL_IP4_CIDRS = "0.0.0.0/0";
focal_class.type: String
focal_class.var_name: ALL_IP4_CIDRS
focal_class.declarator: ALL_IP6_CIDRS = "::/0"
focal_class.modifier: public final static
focal_class.original_string: public final static String ALL_IP6_CIDRS = "::/0";
focal_class.type: String
focal_class.var_name: ALL_IP6_CIDRS
focal_class.declarator: PORT_RANGE_MIN = 0
focal_class.modifier: public final static
focal_class.original_string: public final static int PORT_RANGE_MIN = 0;
focal_class.type: int
focal_class.var_name: PORT_RANGE_MIN
focal_class.declarator: PORT_RANGE_MAX = 65535
focal_class.modifier: public final static
focal_class.original_string: public final static int PORT_RANGE_MAX = 65535;
focal_class.type: int
focal_class.var_name: PORT_RANGE_MAX
focal_class.declarator: s_logger = LoggerFactory.getLogger(NetUtils.class)
focal_class.modifier: protected final static
focal_class.original_string: protected final static Logger s_logger = LoggerFactory.getLogger(NetUtils.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: VLAN_PREFIX = "vlan://"
focal_class.modifier: static final
focal_class.original_string: static final String VLAN_PREFIX = "vlan://";
focal_class.type: String
focal_class.var_name: VLAN_PREFIX
focal_class.declarator: VLAN_PREFIX_LENGTH = VLAN_PREFIX.length()
focal_class.modifier: static final
focal_class.original_string: static final int VLAN_PREFIX_LENGTH = VLAN_PREFIX.length();
focal_class.type: int
focal_class.var_name: VLAN_PREFIX_LENGTH
focal_class.declarator: VLAN_UNTAGGED = "untagged"
focal_class.modifier: static final
focal_class.original_string: static final String VLAN_UNTAGGED = "untagged";
focal_class.type: String
focal_class.var_name: VLAN_UNTAGGED
focal_class.declarator: MAX_CIDR = 32
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_CIDR = 32;
focal_class.type: int
focal_class.var_name: MAX_CIDR
focal_class.declarator: RFC_3021_31_BIT_CIDR = 31
focal_class.modifier: private static final
focal_class.original_string: private static final int RFC_3021_31_BIT_CIDR = 31;
focal_class.type: int
focal_class.var_name: RFC_3021_31_BIT_CIDR
focal_class.declarator: s_rand = new Random(System.currentTimeMillis())
focal_class.modifier: private final static
focal_class.original_string: private final static Random s_rand = new Random(System.currentTimeMillis());
focal_class.type: Random
focal_class.var_name: s_rand
focal_class.file: cosmic-common/src/main/java/com/cloud/utils/net/NetUtils.java
focal_class.identifier: NetUtils
focal_class.class_method_signature: NetUtils.createSequenceBasedMacAddress(final long macAddress)
focal_class.full_signature: public static long createSequenceBasedMacAddress(final long macAddress)
focal_class.identifier: createSequenceBasedMacAddress
focal_class.modifiers: public static
focal_class.parameters: (final long macAddress)
focal_class.return: long
focal_class.signature: long createSequenceBasedMacAddress(final long macAddress)
focal_class.class_method_signature: NetUtils.getHostName()
focal_class.full_signature: public static String getHostName()
focal_class.identifier: getHostName
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHostName()
focal_class.class_method_signature: NetUtils.getLocalCidrs()
focal_class.full_signature: public static String[] getLocalCidrs()
focal_class.identifier: getLocalCidrs
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getLocalCidrs()
focal_class.class_method_signature: NetUtils.getDefaultHostIp()
focal_class.full_signature: public static String getDefaultHostIp()
focal_class.identifier: getDefaultHostIp
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDefaultHostIp()
focal_class.class_method_signature: NetUtils.ipAndNetMaskToCidr(final String ip, final String netmask)
focal_class.full_signature: public static String ipAndNetMaskToCidr(final String ip, final String netmask)
focal_class.identifier: ipAndNetMaskToCidr
focal_class.modifiers: public static
focal_class.parameters: (final String ip, final String netmask)
focal_class.return: String
focal_class.signature: String ipAndNetMaskToCidr(final String ip, final String netmask)
focal_class.class_method_signature: NetUtils.getCidrNetmask(final long cidrSize)
focal_class.full_signature: public static String getCidrNetmask(final long cidrSize)
focal_class.identifier: getCidrNetmask
focal_class.modifiers: public static
focal_class.parameters: (final long cidrSize)
focal_class.return: String
focal_class.signature: String getCidrNetmask(final long cidrSize)
focal_class.class_method_signature: NetUtils.getDefaultEthDevice()
focal_class.full_signature: public static String getDefaultEthDevice()
focal_class.identifier: getDefaultEthDevice
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDefaultEthDevice()
focal_class.class_method_signature: NetUtils.getNetworkParams(final NetworkInterface nic)
focal_class.full_signature: public static String[] getNetworkParams(final NetworkInterface nic)
focal_class.identifier: getNetworkParams
focal_class.modifiers: public static
focal_class.parameters: (final NetworkInterface nic)
focal_class.return: String[]
focal_class.signature: String[] getNetworkParams(final NetworkInterface nic)
focal_class.class_method_signature: NetUtils.isValidIp4(final String ip)
focal_class.full_signature: public static boolean isValidIp4(final String ip)
focal_class.identifier: isValidIp4
focal_class.modifiers: public static
focal_class.parameters: (final String ip)
focal_class.return: boolean
focal_class.signature: boolean isValidIp4(final String ip)
focal_class.class_method_signature: NetUtils.isValidIp4Netmask(final String netmask)
focal_class.full_signature: public static boolean isValidIp4Netmask(final String netmask)
focal_class.identifier: isValidIp4Netmask
focal_class.modifiers: public static
focal_class.parameters: (final String netmask)
focal_class.return: boolean
focal_class.signature: boolean isValidIp4Netmask(final String netmask)
focal_class.class_method_signature: NetUtils.ip2Long(final String ip)
focal_class.full_signature: public static long ip2Long(final String ip)
focal_class.identifier: ip2Long
focal_class.modifiers: public static
focal_class.parameters: (final String ip)
focal_class.return: long
focal_class.signature: long ip2Long(final String ip)
focal_class.class_method_signature: NetUtils.long2Ip(final long ip)
focal_class.full_signature: public static String long2Ip(final long ip)
focal_class.identifier: long2Ip
focal_class.modifiers: public static
focal_class.parameters: (final long ip)
focal_class.return: String
focal_class.signature: String long2Ip(final long ip)
focal_class.class_method_signature: NetUtils.netMaskFromCidr(final long cidrSize)
focal_class.full_signature: static long netMaskFromCidr(final long cidrSize)
focal_class.identifier: netMaskFromCidr
focal_class.modifiers: static
focal_class.parameters: (final long cidrSize)
focal_class.return: long
focal_class.signature: long netMaskFromCidr(final long cidrSize)
focal_class.class_method_signature: NetUtils.byte2Mac(final byte[] m)
focal_class.full_signature: public static String byte2Mac(final byte[] m)
focal_class.identifier: byte2Mac
focal_class.modifiers: public static
focal_class.parameters: (final byte[] m)
focal_class.return: String
focal_class.signature: String byte2Mac(final byte[] m)
focal_class.class_method_signature: NetUtils.prefix2Netmask(final short prefix)
focal_class.full_signature: public static String prefix2Netmask(final short prefix)
focal_class.identifier: prefix2Netmask
focal_class.modifiers: public static
focal_class.parameters: (final short prefix)
focal_class.return: String
focal_class.signature: String prefix2Netmask(final short prefix)
focal_class.class_method_signature: NetUtils.getAllLocalInetAddresses()
focal_class.full_signature: public static InetAddress[] getAllLocalInetAddresses()
focal_class.identifier: getAllLocalInetAddresses
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: InetAddress[]
focal_class.signature: InetAddress[] getAllLocalInetAddresses()
focal_class.class_method_signature: NetUtils.getInterfaceInetAddresses(final String ifName)
focal_class.full_signature: public static InetAddress[] getInterfaceInetAddresses(final String ifName)
focal_class.identifier: getInterfaceInetAddresses
focal_class.modifiers: public static
focal_class.parameters: (final String ifName)
focal_class.return: InetAddress[]
focal_class.signature: InetAddress[] getInterfaceInetAddresses(final String ifName)
focal_class.class_method_signature: NetUtils.getLocalIPString()
focal_class.full_signature: public static String getLocalIPString()
focal_class.identifier: getLocalIPString
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLocalIPString()
focal_class.class_method_signature: NetUtils.getLocalInetAddress()
focal_class.full_signature: public static InetAddress getLocalInetAddress()
focal_class.identifier: getLocalInetAddress
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: InetAddress
focal_class.signature: InetAddress getLocalInetAddress()
focal_class.class_method_signature: NetUtils.isLocalAddress(final String strAddress)
focal_class.full_signature: public static boolean isLocalAddress(final String strAddress)
focal_class.identifier: isLocalAddress
focal_class.modifiers: public static
focal_class.parameters: (final String strAddress)
focal_class.return: boolean
focal_class.signature: boolean isLocalAddress(final String strAddress)
focal_class.class_method_signature: NetUtils.isLocalAddress(final InetAddress addr)
focal_class.full_signature: public static boolean isLocalAddress(final InetAddress addr)
focal_class.identifier: isLocalAddress
focal_class.modifiers: public static
focal_class.parameters: (final InetAddress addr)
focal_class.return: boolean
focal_class.signature: boolean isLocalAddress(final InetAddress addr)
focal_class.class_method_signature: NetUtils.getMacAddress(final InetAddress address)
focal_class.full_signature: public static String getMacAddress(final InetAddress address)
focal_class.identifier: getMacAddress
focal_class.modifiers: public static
focal_class.parameters: (final InetAddress address)
focal_class.return: String
focal_class.signature: String getMacAddress(final InetAddress address)
focal_class.class_method_signature: NetUtils.ipRangesOverlap(final String startIp1, final String endIp1, final String startIp2, final String endIp2)
focal_class.full_signature: public static boolean ipRangesOverlap(final String startIp1, final String endIp1, final String startIp2, final String endIp2)
focal_class.identifier: ipRangesOverlap
focal_class.modifiers: public static
focal_class.parameters: (final String startIp1, final String endIp1, final String startIp2, final String endIp2)
focal_class.return: boolean
focal_class.signature: boolean ipRangesOverlap(final String startIp1, final String endIp1, final String startIp2, final String endIp2)
focal_class.class_method_signature: NetUtils.getNicParams(final String nicName)
focal_class.full_signature: public static String[] getNicParams(final String nicName)
focal_class.identifier: getNicParams
focal_class.modifiers: public static
focal_class.parameters: (final String nicName)
focal_class.return: String[]
focal_class.signature: String[] getNicParams(final String nicName)
focal_class.class_method_signature: NetUtils.isSiteLocalAddress(final String ipAddress)
focal_class.full_signature: public static boolean isSiteLocalAddress(final String ipAddress)
focal_class.identifier: isSiteLocalAddress
focal_class.modifiers: public static
focal_class.parameters: (final String ipAddress)
focal_class.return: boolean
focal_class.signature: boolean isSiteLocalAddress(final String ipAddress)
focal_class.class_method_signature: NetUtils.validIpRange(final String startIP, final String endIP)
focal_class.full_signature: public static boolean validIpRange(final String startIP, final String endIP)
focal_class.identifier: validIpRange
focal_class.modifiers: public static
focal_class.parameters: (final String startIP, final String endIP)
focal_class.return: boolean
focal_class.signature: boolean validIpRange(final String startIP, final String endIP)
focal_class.class_method_signature: NetUtils.validIpRange(final String ipRange)
focal_class.full_signature: public static boolean validIpRange(final String ipRange)
focal_class.identifier: validIpRange
focal_class.modifiers: public static
focal_class.parameters: (final String ipRange)
focal_class.return: boolean
focal_class.signature: boolean validIpRange(final String ipRange)
focal_class.class_method_signature: NetUtils.is31PrefixCidr(final String cidr)
focal_class.full_signature: public static boolean is31PrefixCidr(final String cidr)
focal_class.identifier: is31PrefixCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: boolean
focal_class.signature: boolean is31PrefixCidr(final String cidr)
focal_class.class_method_signature: NetUtils.isValidIp4Cidr(final String cidr)
focal_class.full_signature: public static boolean isValidIp4Cidr(final String cidr)
focal_class.identifier: isValidIp4Cidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: boolean
focal_class.signature: boolean isValidIp4Cidr(final String cidr)
focal_class.class_method_signature: NetUtils.getAllIpsFromCidr(final String cidr, final Set<Long> usedIps)
focal_class.full_signature: public static SortedSet<Long> getAllIpsFromCidr(final String cidr, final Set<Long> usedIps)
focal_class.identifier: getAllIpsFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr, final Set<Long> usedIps)
focal_class.return: SortedSet<Long>
focal_class.signature: SortedSet<Long> getAllIpsFromCidr(final String cidr, final Set<Long> usedIps)
focal_class.class_method_signature: NetUtils.getAllIpsFromCidr(final String cidr_ip, final long size, final Set<Long> usedIps)
focal_class.full_signature: public static SortedSet<Long> getAllIpsFromCidr(final String cidr_ip, final long size, final Set<Long> usedIps)
focal_class.identifier: getAllIpsFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr_ip, final long size, final Set<Long> usedIps)
focal_class.return: SortedSet<Long>
focal_class.signature: SortedSet<Long> getAllIpsFromCidr(final String cidr_ip, final long size, final Set<Long> usedIps)
focal_class.class_method_signature: NetUtils.listIp2LongList(final List<String> ipStringList)
focal_class.full_signature: public static SortedSet<Long> listIp2LongList(final List<String> ipStringList)
focal_class.identifier: listIp2LongList
focal_class.modifiers: public static
focal_class.parameters: (final List<String> ipStringList)
focal_class.return: SortedSet<Long>
focal_class.signature: SortedSet<Long> listIp2LongList(final List<String> ipStringList)
focal_class.class_method_signature: NetUtils.getRandomIpFromCidr(final String startIp, final int size, final SortedSet<Long> avoid)
focal_class.full_signature: public static long getRandomIpFromCidr(final String startIp, final int size, final SortedSet<Long> avoid)
focal_class.identifier: getRandomIpFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String startIp, final int size, final SortedSet<Long> avoid)
focal_class.return: long
focal_class.signature: long getRandomIpFromCidr(final String startIp, final int size, final SortedSet<Long> avoid)
focal_class.class_method_signature: NetUtils.getRandomIpFromCidr(final long cidr, final int size, final SortedSet<Long> avoid)
focal_class.full_signature: public static long getRandomIpFromCidr(final long cidr, final int size, final SortedSet<Long> avoid)
focal_class.identifier: getRandomIpFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final long cidr, final int size, final SortedSet<Long> avoid)
focal_class.return: long
focal_class.signature: long getRandomIpFromCidr(final long cidr, final int size, final SortedSet<Long> avoid)
focal_class.class_method_signature: NetUtils.sameSubnet(final String ip1, final String ip2, final String netmask)
focal_class.full_signature: public static boolean sameSubnet(final String ip1, final String ip2, final String netmask)
focal_class.identifier: sameSubnet
focal_class.modifiers: public static
focal_class.parameters: (final String ip1, final String ip2, final String netmask)
focal_class.return: boolean
focal_class.signature: boolean sameSubnet(final String ip1, final String ip2, final String netmask)
focal_class.class_method_signature: NetUtils.getSubNet(final String ip, final String netmask)
focal_class.full_signature: public static String getSubNet(final String ip, final String netmask)
focal_class.identifier: getSubNet
focal_class.modifiers: public static
focal_class.parameters: (final String ip, final String netmask)
focal_class.return: String
focal_class.signature: String getSubNet(final String ip, final String netmask)
focal_class.class_method_signature: NetUtils.sameSubnetCIDR(final String ip1, final String ip2, final long cidrSize)
focal_class.full_signature: public static boolean sameSubnetCIDR(final String ip1, final String ip2, final long cidrSize)
focal_class.identifier: sameSubnetCIDR
focal_class.modifiers: public static
focal_class.parameters: (final String ip1, final String ip2, final long cidrSize)
focal_class.return: boolean
focal_class.signature: boolean sameSubnetCIDR(final String ip1, final String ip2, final long cidrSize)
focal_class.class_method_signature: NetUtils.getCidrSubNet(final String ip, final long cidrSize)
focal_class.full_signature: public static String getCidrSubNet(final String ip, final long cidrSize)
focal_class.identifier: getCidrSubNet
focal_class.modifiers: public static
focal_class.parameters: (final String ip, final long cidrSize)
focal_class.return: String
focal_class.signature: String getCidrSubNet(final String ip, final long cidrSize)
focal_class.class_method_signature: NetUtils.getCidr(final String cidr)
focal_class.full_signature: public static Pair<String, Integer> getCidr(final String cidr)
focal_class.identifier: getCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: Pair<String, Integer>
focal_class.signature: Pair<String, Integer> getCidr(final String cidr)
focal_class.class_method_signature: NetUtils.isNetworkASubsetOrSupersetOfNetworkB(final String cidrA, final String cidrB)
focal_class.full_signature: public static SupersetOrSubset isNetworkASubsetOrSupersetOfNetworkB(final String cidrA, final String cidrB)
focal_class.identifier: isNetworkASubsetOrSupersetOfNetworkB
focal_class.modifiers: public static
focal_class.parameters: (final String cidrA, final String cidrB)
focal_class.return: SupersetOrSubset
focal_class.signature: SupersetOrSubset isNetworkASubsetOrSupersetOfNetworkB(final String cidrA, final String cidrB)
focal_class.class_method_signature: NetUtils.areCidrsNotEmpty(final String cidrA, final String cidrB)
focal_class.full_signature: static boolean areCidrsNotEmpty(final String cidrA, final String cidrB)
focal_class.identifier: areCidrsNotEmpty
focal_class.modifiers: static
focal_class.parameters: (final String cidrA, final String cidrB)
focal_class.return: boolean
focal_class.signature: boolean areCidrsNotEmpty(final String cidrA, final String cidrB)
focal_class.class_method_signature: NetUtils.cidrToLong(final String cidr)
focal_class.full_signature: public static Long[] cidrToLong(final String cidr)
focal_class.identifier: cidrToLong
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: Long[]
focal_class.signature: Long[] cidrToLong(final String cidr)
focal_class.class_method_signature: NetUtils.getCidrSizeFromString(final String cidrSize)
focal_class.full_signature: static long getCidrSizeFromString(final String cidrSize)
focal_class.identifier: getCidrSizeFromString
focal_class.modifiers: static
focal_class.parameters: (final String cidrSize)
focal_class.return: long
focal_class.signature: long getCidrSizeFromString(final String cidrSize)
focal_class.class_method_signature: NetUtils.getCidrSubNet(final String cidr)
focal_class.full_signature: public static String getCidrSubNet(final String cidr)
focal_class.identifier: getCidrSubNet
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: String
focal_class.signature: String getCidrSubNet(final String cidr)
focal_class.class_method_signature: NetUtils.getCidrNetmask(final String cidr)
focal_class.full_signature: public static String getCidrNetmask(final String cidr)
focal_class.identifier: getCidrNetmask
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: String
focal_class.signature: String getCidrNetmask(final String cidr)
focal_class.class_method_signature: NetUtils.getCidrHostAddress(final String cidr)
focal_class.full_signature: public static String getCidrHostAddress(final String cidr)
focal_class.identifier: getCidrHostAddress
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: String
focal_class.signature: String getCidrHostAddress(final String cidr)
focal_class.class_method_signature: NetUtils.getCidrHostAddress6(final String cidrv6)
focal_class.full_signature: public static String getCidrHostAddress6(final String cidrv6)
focal_class.identifier: getCidrHostAddress6
focal_class.modifiers: public static
focal_class.parameters: (final String cidrv6)
focal_class.return: String
focal_class.signature: String getCidrHostAddress6(final String cidrv6)
focal_class.class_method_signature: NetUtils.cidr2Netmask(final String cidr)
focal_class.full_signature: public static String cidr2Netmask(final String cidr)
focal_class.identifier: cidr2Netmask
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: String
focal_class.signature: String cidr2Netmask(final String cidr)
focal_class.class_method_signature: NetUtils.isValidPort(final int p)
focal_class.full_signature: public static boolean isValidPort(final int p)
focal_class.identifier: isValidPort
focal_class.modifiers: public static
focal_class.parameters: (final int p)
focal_class.return: boolean
focal_class.signature: boolean isValidPort(final int p)
focal_class.class_method_signature: NetUtils.isValidPort(final String p)
focal_class.full_signature: public static boolean isValidPort(final String p)
focal_class.identifier: isValidPort
focal_class.modifiers: public static
focal_class.parameters: (final String p)
focal_class.return: boolean
focal_class.signature: boolean isValidPort(final String p)
focal_class.class_method_signature: NetUtils.isValidAlgorithm(final String p)
focal_class.full_signature: public static boolean isValidAlgorithm(final String p)
focal_class.identifier: isValidAlgorithm
focal_class.modifiers: public static
focal_class.parameters: (final String p)
focal_class.return: boolean
focal_class.signature: boolean isValidAlgorithm(final String p)
focal_class.class_method_signature: NetUtils.getLinkLocalNetMask()
focal_class.full_signature: public static String getLinkLocalNetMask()
focal_class.identifier: getLinkLocalNetMask
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLinkLocalNetMask()
focal_class.class_method_signature: NetUtils.getLinkLocalIPRange(final int size)
focal_class.full_signature: public static String[] getLinkLocalIPRange(final int size)
focal_class.identifier: getLinkLocalIPRange
focal_class.modifiers: public static
focal_class.parameters: (final int size)
focal_class.return: String[]
focal_class.signature: String[] getLinkLocalIPRange(final int size)
focal_class.class_method_signature: NetUtils.getIpRangeFromCidr(final String cidr, final long size)
focal_class.full_signature: public static String[] getIpRangeFromCidr(final String cidr, final long size)
focal_class.identifier: getIpRangeFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr, final long size)
focal_class.return: String[]
focal_class.signature: String[] getIpRangeFromCidr(final String cidr, final long size)
focal_class.class_method_signature: NetUtils.getLinkLocalGateway()
focal_class.full_signature: public static String getLinkLocalGateway()
focal_class.identifier: getLinkLocalGateway
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLinkLocalGateway()
focal_class.class_method_signature: NetUtils.getLinkLocalIpEnd()
focal_class.full_signature: public static String getLinkLocalIpEnd()
focal_class.identifier: getLinkLocalIpEnd
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLinkLocalIpEnd()
focal_class.class_method_signature: NetUtils.getLinkLocalCIDR()
focal_class.full_signature: public static String getLinkLocalCIDR()
focal_class.identifier: getLinkLocalCIDR
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLinkLocalCIDR()
focal_class.class_method_signature: NetUtils.getIpRangeEndIpFromCidr(final String cidr, final long size)
focal_class.full_signature: public static String getIpRangeEndIpFromCidr(final String cidr, final long size)
focal_class.identifier: getIpRangeEndIpFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr, final long size)
focal_class.return: String
focal_class.signature: String getIpRangeEndIpFromCidr(final String cidr, final long size)
focal_class.class_method_signature: NetUtils.portRangeToString(final int portRange[])
focal_class.full_signature: public static String portRangeToString(final int portRange[])
focal_class.identifier: portRangeToString
focal_class.modifiers: public static
focal_class.parameters: (final int portRange[])
focal_class.return: String
focal_class.signature: String portRangeToString(final int portRange[])
focal_class.class_method_signature: NetUtils.verifyDomainName(final String domainName)
focal_class.full_signature: public static boolean verifyDomainName(final String domainName)
focal_class.identifier: verifyDomainName
focal_class.modifiers: public static
focal_class.parameters: (final String domainName)
focal_class.return: boolean
focal_class.signature: boolean verifyDomainName(final String domainName)
focal_class.class_method_signature: NetUtils.verifyDomainNameLabel(final String hostName, final boolean isHostName)
focal_class.full_signature: public static boolean verifyDomainNameLabel(final String hostName, final boolean isHostName)
focal_class.identifier: verifyDomainNameLabel
focal_class.modifiers: public static
focal_class.parameters: (final String hostName, final boolean isHostName)
focal_class.return: boolean
focal_class.signature: boolean verifyDomainNameLabel(final String hostName, final boolean isHostName)
focal_class.class_method_signature: NetUtils.getDhcpRange(final String cidr)
focal_class.full_signature: public static String getDhcpRange(final String cidr)
focal_class.identifier: getDhcpRange
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: String
focal_class.signature: String getDhcpRange(final String cidr)
focal_class.class_method_signature: NetUtils.getIpRangeStartIpFromCidr(final String cidr, final long size)
focal_class.full_signature: public static String getIpRangeStartIpFromCidr(final String cidr, final long size)
focal_class.identifier: getIpRangeStartIpFromCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr, final long size)
focal_class.return: String
focal_class.signature: String getIpRangeStartIpFromCidr(final String cidr, final long size)
focal_class.class_method_signature: NetUtils.isSameIpRange(final String cidrA, final String cidrB)
focal_class.full_signature: public static boolean isSameIpRange(final String cidrA, final String cidrB)
focal_class.identifier: isSameIpRange
focal_class.modifiers: public static
focal_class.parameters: (final String cidrA, final String cidrB)
focal_class.return: boolean
focal_class.signature: boolean isSameIpRange(final String cidrA, final String cidrB)
focal_class.class_method_signature: NetUtils.verifyInstanceName(final String instanceName)
focal_class.full_signature: public static boolean verifyInstanceName(final String instanceName)
focal_class.identifier: verifyInstanceName
focal_class.modifiers: public static
focal_class.parameters: (final String instanceName)
focal_class.return: boolean
focal_class.signature: boolean verifyInstanceName(final String instanceName)
focal_class.class_method_signature: NetUtils.isNetworksOverlap(final String cidrA, final String cidrB)
focal_class.full_signature: public static boolean isNetworksOverlap(final String cidrA, final String cidrB)
focal_class.identifier: isNetworksOverlap
focal_class.modifiers: public static
focal_class.parameters: (final String cidrA, final String cidrB)
focal_class.return: boolean
focal_class.signature: boolean isNetworksOverlap(final String cidrA, final String cidrB)
focal_class.class_method_signature: NetUtils.isValidS2SVpnPolicy(final String policyType, final String policys)
focal_class.full_signature: public static boolean isValidS2SVpnPolicy(final String policyType, final String policys)
focal_class.identifier: isValidS2SVpnPolicy
focal_class.modifiers: public static
focal_class.parameters: (final String policyType, final String policys)
focal_class.return: boolean
focal_class.signature: boolean isValidS2SVpnPolicy(final String policyType, final String policys)
focal_class.class_method_signature: NetUtils.isValidCidrList(final String cidrList)
focal_class.full_signature: public static boolean isValidCidrList(final String cidrList)
focal_class.identifier: isValidCidrList
focal_class.modifiers: public static
focal_class.parameters: (final String cidrList)
focal_class.return: boolean
focal_class.signature: boolean isValidCidrList(final String cidrList)
focal_class.class_method_signature: NetUtils.validateGuestCidrList(final String guestCidrList)
focal_class.full_signature: public static boolean validateGuestCidrList(final String guestCidrList)
focal_class.identifier: validateGuestCidrList
focal_class.modifiers: public static
focal_class.parameters: (final String guestCidrList)
focal_class.return: boolean
focal_class.signature: boolean validateGuestCidrList(final String guestCidrList)
focal_class.class_method_signature: NetUtils.validateGuestCidr(final String cidr)
focal_class.full_signature: public static boolean validateGuestCidr(final String cidr)
focal_class.identifier: validateGuestCidr
focal_class.modifiers: public static
focal_class.parameters: (final String cidr)
focal_class.return: boolean
focal_class.signature: boolean validateGuestCidr(final String cidr)
focal_class.class_method_signature: NetUtils.isValidMac(final String macAddr)
focal_class.full_signature: public static boolean isValidMac(final String macAddr)
focal_class.identifier: isValidMac
focal_class.modifiers: public static
focal_class.parameters: (final String macAddr)
focal_class.return: boolean
focal_class.signature: boolean isValidMac(final String macAddr)
focal_class.class_method_signature: NetUtils.isUnicastMac(final String macAddr)
focal_class.full_signature: public static boolean isUnicastMac(final String macAddr)
focal_class.identifier: isUnicastMac
focal_class.modifiers: public static
focal_class.parameters: (final String macAddr)
focal_class.return: boolean
focal_class.signature: boolean isUnicastMac(final String macAddr)
focal_class.class_method_signature: NetUtils.isNetworkAWithinNetworkB(final String cidrA, final String cidrB)
focal_class.full_signature: public static boolean isNetworkAWithinNetworkB(final String cidrA, final String cidrB)
focal_class.identifier: isNetworkAWithinNetworkB
focal_class.modifiers: public static
focal_class.parameters: (final String cidrA, final String cidrB)
focal_class.return: boolean
focal_class.signature: boolean isNetworkAWithinNetworkB(final String cidrA, final String cidrB)
focal_class.class_method_signature: NetUtils.validateIcmpType(final long icmpType)
focal_class.full_signature: public static boolean validateIcmpType(final long icmpType)
focal_class.identifier: validateIcmpType
focal_class.modifiers: public static
focal_class.parameters: (final long icmpType)
focal_class.return: boolean
focal_class.signature: boolean validateIcmpType(final long icmpType)
focal_class.class_method_signature: NetUtils.validateIcmpCode(final long icmpCode)
focal_class.full_signature: public static boolean validateIcmpCode(final long icmpCode)
focal_class.identifier: validateIcmpCode
focal_class.modifiers: public static
focal_class.parameters: (final long icmpCode)
focal_class.return: boolean
focal_class.signature: boolean validateIcmpCode(final long icmpCode)
focal_class.class_method_signature: NetUtils.isValidIp6(final String ip)
focal_class.full_signature: public static boolean isValidIp6(final String ip)
focal_class.identifier: isValidIp6
focal_class.modifiers: public static
focal_class.parameters: (final String ip)
focal_class.return: boolean
focal_class.signature: boolean isValidIp6(final String ip)
focal_class.class_method_signature: NetUtils.isValidIp6Cidr(final String ip6Cidr)
focal_class.full_signature: public static boolean isValidIp6Cidr(final String ip6Cidr)
focal_class.identifier: isValidIp6Cidr
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Cidr)
focal_class.return: boolean
focal_class.signature: boolean isValidIp6Cidr(final String ip6Cidr)
focal_class.class_method_signature: NetUtils.getIp6CidrSize(final String ip6Cidr)
focal_class.full_signature: public static int getIp6CidrSize(final String ip6Cidr)
focal_class.identifier: getIp6CidrSize
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Cidr)
focal_class.return: int
focal_class.signature: int getIp6CidrSize(final String ip6Cidr)
focal_class.class_method_signature: NetUtils.getIp6FromRange(final String ip6Range)
focal_class.full_signature: public static String getIp6FromRange(final String ip6Range)
focal_class.identifier: getIp6FromRange
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Range)
focal_class.return: String
focal_class.signature: String getIp6FromRange(final String ip6Range)
focal_class.class_method_signature: NetUtils.getAllIpsFromRangeList(final String excludedIpsExpression)
focal_class.full_signature: public static List<String> getAllIpsFromRangeList(final String excludedIpsExpression)
focal_class.identifier: getAllIpsFromRangeList
focal_class.modifiers: public static
focal_class.parameters: (final String excludedIpsExpression)
focal_class.return: List<String>
focal_class.signature: List<String> getAllIpsFromRangeList(final String excludedIpsExpression)
focal_class.class_method_signature: NetUtils.getAllIpsFromRange(final String range)
focal_class.full_signature: public static List<String> getAllIpsFromRange(final String range)
focal_class.identifier: getAllIpsFromRange
focal_class.modifiers: public static
focal_class.parameters: (final String range)
focal_class.return: List<String>
focal_class.signature: List<String> getAllIpsFromRange(final String range)
focal_class.class_method_signature: NetUtils.isIpRangeListInCidr(final String ipRangeListExpression, final String cidr)
focal_class.full_signature: public static Boolean isIpRangeListInCidr(final String ipRangeListExpression, final String cidr)
focal_class.identifier: isIpRangeListInCidr
focal_class.modifiers: public static
focal_class.parameters: (final String ipRangeListExpression, final String cidr)
focal_class.return: Boolean
focal_class.signature: Boolean isIpRangeListInCidr(final String ipRangeListExpression, final String cidr)
focal_class.class_method_signature: NetUtils.countIp6InRange(final String ip6Range)
focal_class.full_signature: public static BigInteger countIp6InRange(final String ip6Range)
focal_class.identifier: countIp6InRange
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Range)
focal_class.return: BigInteger
focal_class.signature: BigInteger countIp6InRange(final String ip6Range)
focal_class.class_method_signature: NetUtils.convertIPv6AddressToBigInteger(final IPv6Address addr)
focal_class.full_signature: private static BigInteger convertIPv6AddressToBigInteger(final IPv6Address addr)
focal_class.identifier: convertIPv6AddressToBigInteger
focal_class.modifiers: private static
focal_class.parameters: (final IPv6Address addr)
focal_class.return: BigInteger
focal_class.signature: BigInteger convertIPv6AddressToBigInteger(final IPv6Address addr)
focal_class.class_method_signature: NetUtils.isIp6InRange(final String ip6, final String ip6Range)
focal_class.full_signature: public static boolean isIp6InRange(final String ip6, final String ip6Range)
focal_class.identifier: isIp6InRange
focal_class.modifiers: public static
focal_class.parameters: (final String ip6, final String ip6Range)
focal_class.return: boolean
focal_class.signature: boolean isIp6InRange(final String ip6, final String ip6Range)
focal_class.class_method_signature: NetUtils.isIp6InNetwork(final IPv6Address ip, final IPv6Network network)
focal_class.full_signature: public static boolean isIp6InNetwork(final IPv6Address ip, final IPv6Network network)
focal_class.identifier: isIp6InNetwork
focal_class.modifiers: public static
focal_class.parameters: (final IPv6Address ip, final IPv6Network network)
focal_class.return: boolean
focal_class.signature: boolean isIp6InNetwork(final IPv6Address ip, final IPv6Network network)
focal_class.class_method_signature: NetUtils.isIp6InNetwork(final String ip6, final String ip6Cidr)
focal_class.full_signature: public static boolean isIp6InNetwork(final String ip6, final String ip6Cidr)
focal_class.identifier: isIp6InNetwork
focal_class.modifiers: public static
focal_class.parameters: (final String ip6, final String ip6Cidr)
focal_class.return: boolean
focal_class.signature: boolean isIp6InNetwork(final String ip6, final String ip6Cidr)
focal_class.class_method_signature: NetUtils.isIp6InNetwork(final String ip6, final String ip6Cidr, final Boolean inclusiveHostCount)
focal_class.full_signature: public static boolean isIp6InNetwork(final String ip6, final String ip6Cidr, final Boolean inclusiveHostCount)
focal_class.identifier: isIp6InNetwork
focal_class.modifiers: public static
focal_class.parameters: (final String ip6, final String ip6Cidr, final Boolean inclusiveHostCount)
focal_class.return: boolean
focal_class.signature: boolean isIp6InNetwork(final String ip6, final String ip6Cidr, final Boolean inclusiveHostCount)
focal_class.class_method_signature: NetUtils.isIp6RangeOverlap(final String ipRange1, final String ipRange2)
focal_class.full_signature: public static boolean isIp6RangeOverlap(final String ipRange1, final String ipRange2)
focal_class.identifier: isIp6RangeOverlap
focal_class.modifiers: public static
focal_class.parameters: (final String ipRange1, final String ipRange2)
focal_class.return: boolean
focal_class.signature: boolean isIp6RangeOverlap(final String ipRange1, final String ipRange2)
focal_class.class_method_signature: NetUtils.getNextIp6InRange(final String currentIp, final String ipRange)
focal_class.full_signature: public static String getNextIp6InRange(final String currentIp, final String ipRange)
focal_class.identifier: getNextIp6InRange
focal_class.modifiers: public static
focal_class.parameters: (final String currentIp, final String ipRange)
focal_class.return: String
focal_class.signature: String getNextIp6InRange(final String currentIp, final String ipRange)
focal_class.class_method_signature: NetUtils.standardizeIp6Address(final String ip6Addr)
focal_class.full_signature: public static String standardizeIp6Address(final String ip6Addr)
focal_class.identifier: standardizeIp6Address
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Addr)
focal_class.return: String
focal_class.signature: String standardizeIp6Address(final String ip6Addr)
focal_class.class_method_signature: NetUtils.standardizeIp6Cidr(final String ip6Cidr)
focal_class.full_signature: public static String standardizeIp6Cidr(final String ip6Cidr)
focal_class.identifier: standardizeIp6Cidr
focal_class.modifiers: public static
focal_class.parameters: (final String ip6Cidr)
focal_class.return: String
focal_class.signature: String standardizeIp6Cidr(final String ip6Cidr)
focal_class.class_method_signature: NetUtils.standardizeMacAddress(final String macAddr)
focal_class.full_signature: public static String standardizeMacAddress(final String macAddr)
focal_class.identifier: standardizeMacAddress
focal_class.modifiers: public static
focal_class.parameters: (final String macAddr)
focal_class.return: String
focal_class.signature: String standardizeMacAddress(final String macAddr)
focal_class.class_method_signature: NetUtils.isValidVlan(String vlan)
focal_class.full_signature: public static boolean isValidVlan(String vlan)
focal_class.identifier: isValidVlan
focal_class.modifiers: public static
focal_class.parameters: (String vlan)
focal_class.return: boolean
focal_class.signature: boolean isValidVlan(String vlan)
focal_class.class_method_signature: NetUtils.isSameIsolationId(String one, String other)
focal_class.full_signature: public static boolean isSameIsolationId(String one, String other)
focal_class.identifier: isSameIsolationId
focal_class.modifiers: public static
focal_class.parameters: (String one, String other)
focal_class.return: boolean
focal_class.signature: boolean isSameIsolationId(String one, String other)
focal_class.class_method_signature: NetUtils.generateUriForPvlan(final String primaryVlan, final String isolatedPvlan)
focal_class.full_signature: public static URI generateUriForPvlan(final String primaryVlan, final String isolatedPvlan)
focal_class.identifier: generateUriForPvlan
focal_class.modifiers: public static
focal_class.parameters: (final String primaryVlan, final String isolatedPvlan)
focal_class.return: URI
focal_class.signature: URI generateUriForPvlan(final String primaryVlan, final String isolatedPvlan)
focal_class.class_method_signature: NetUtils.getPrimaryPvlanFromUri(final URI uri)
focal_class.full_signature: public static String getPrimaryPvlanFromUri(final URI uri)
focal_class.identifier: getPrimaryPvlanFromUri
focal_class.modifiers: public static
focal_class.parameters: (final URI uri)
focal_class.return: String
focal_class.signature: String getPrimaryPvlanFromUri(final URI uri)
focal_class.class_method_signature: NetUtils.getIsolatedPvlanFromUri(final URI uri)
focal_class.full_signature: public static String getIsolatedPvlanFromUri(final URI uri)
focal_class.identifier: getIsolatedPvlanFromUri
focal_class.modifiers: public static
focal_class.parameters: (final URI uri)
focal_class.return: String
focal_class.signature: String getIsolatedPvlanFromUri(final URI uri)
focal_class.class_method_signature: NetUtils.generateMacOnIncrease(final String baseMac, final long l)
focal_class.full_signature: public static String generateMacOnIncrease(final String baseMac, final long l)
focal_class.identifier: generateMacOnIncrease
focal_class.modifiers: public static
focal_class.parameters: (final String baseMac, final long l)
focal_class.return: String
focal_class.signature: String generateMacOnIncrease(final String baseMac, final long l)
focal_class.class_method_signature: NetUtils.mac2Long(final String macAddress)
focal_class.full_signature: public static long mac2Long(final String macAddress)
focal_class.identifier: mac2Long
focal_class.modifiers: public static
focal_class.parameters: (final String macAddress)
focal_class.return: long
focal_class.signature: long mac2Long(final String macAddress)
focal_class.class_method_signature: NetUtils.long2Mac(final long macAddress)
focal_class.full_signature: public static String long2Mac(final long macAddress)
focal_class.identifier: long2Mac
focal_class.modifiers: public static
focal_class.parameters: (final long macAddress)
focal_class.return: String
focal_class.signature: String long2Mac(final long macAddress)
focal_class.class_method_signature: NetUtils.isIpWithtInCidrRange(final String ipAddress, final String cidr)
focal_class.full_signature: public static boolean isIpWithtInCidrRange(final String ipAddress, final String cidr)
focal_class.identifier: isIpWithtInCidrRange
focal_class.modifiers: public static
focal_class.parameters: (final String ipAddress, final String cidr)
focal_class.return: boolean
focal_class.signature: boolean isIpWithtInCidrRange(final String ipAddress, final String cidr)
focal_class.class_method_signature: NetUtils.isIpInCidrList(final InetAddress address, final String[] cidrlist)
focal_class.full_signature: public static boolean isIpInCidrList(final InetAddress address, final String[] cidrlist)
focal_class.identifier: isIpInCidrList
focal_class.modifiers: public static
focal_class.parameters: (final InetAddress address, final String[] cidrlist)
focal_class.return: boolean
focal_class.signature: boolean isIpInCidrList(final InetAddress address, final String[] cidrlist)
focal_class.class_method_signature: NetUtils.IsIpEqualToNetworkOrBroadCastIp(final String requestedIp, final String cidr, final long size)
focal_class.full_signature: public static Boolean IsIpEqualToNetworkOrBroadCastIp(final String requestedIp, final String cidr, final long size)
focal_class.identifier: IsIpEqualToNetworkOrBroadCastIp
focal_class.modifiers: public static
focal_class.parameters: (final String requestedIp, final String cidr, final long size)
focal_class.return: Boolean
focal_class.signature: Boolean IsIpEqualToNetworkOrBroadCastIp(final String requestedIp, final String cidr, final long size)
focal_class.class_method_signature: NetUtils.isNetworkorBroadcastIP(final String ip, final String netmask)
focal_class.full_signature: public static boolean isNetworkorBroadcastIP(final String ip, final String netmask)
focal_class.identifier: isNetworkorBroadcastIP
focal_class.modifiers: public static
focal_class.parameters: (final String ip, final String netmask)
focal_class.return: boolean
focal_class.signature: boolean isNetworkorBroadcastIP(final String ip, final String netmask)
focal_class.class_method_signature: NetUtils.getCidrFromGatewayAndNetmask(final String gatewayStr, final String netmaskStr)
focal_class.full_signature: public static String getCidrFromGatewayAndNetmask(final String gatewayStr, final String netmaskStr)
focal_class.identifier: getCidrFromGatewayAndNetmask
focal_class.modifiers: public static
focal_class.parameters: (final String gatewayStr, final String netmaskStr)
focal_class.return: String
focal_class.signature: String getCidrFromGatewayAndNetmask(final String gatewayStr, final String netmaskStr)
focal_class.class_method_signature: NetUtils.getCidrSize(final String netmask)
focal_class.full_signature: public static long getCidrSize(final String netmask)
focal_class.identifier: getCidrSize
focal_class.modifiers: public static
focal_class.parameters: (final String netmask)
focal_class.return: long
focal_class.signature: long getCidrSize(final String netmask)
focal_class.class_method_signature: NetUtils.getIpv4AddressWithCidrSize(final String ipv4Address, final String netmask)
focal_class.full_signature: public static String getIpv4AddressWithCidrSize(final String ipv4Address, final String netmask)
focal_class.identifier: getIpv4AddressWithCidrSize
focal_class.modifiers: public static
focal_class.parameters: (final String ipv4Address, final String netmask)
focal_class.return: String
focal_class.signature: String getIpv4AddressWithCidrSize(final String ipv4Address, final String netmask)
focal_class.class_method_signature: NetUtils.validIpRangeList(final String ipRangeList)
focal_class.full_signature: public static Boolean validIpRangeList(final String ipRangeList)
focal_class.identifier: validIpRangeList
focal_class.modifiers: public static
focal_class.parameters: (final String ipRangeList)
focal_class.return: Boolean
focal_class.signature: Boolean validIpRangeList(final String ipRangeList)
focal_method.body: public static boolean isValidS2SVpnPolicy(final String policyType, final String policys) {
          if (policyType == null || policyType.isEmpty()) {
              return false;
          }
          if (policys == null || policys.isEmpty()) {
              return false;
          }
          for (final String policy : policys.split(",")) {
              if (policy.isEmpty()) {
                  return false;
              }
              final String cipherHash = policy.split(";")[0];
              if (cipherHash.isEmpty()) {
                  return false;
              }
              final String[] list = cipherHash.split("-");
              if (list.length != 2) {
                  return false;
              }
              final String cipher = list[0];
              final String hash = list[1];
              if (!cipher.matches("3des|aes128|aes192|aes256")) {
                  return false;
              }
              if (!hash.matches("md5|sha1|sha256|sha384|sha512")) {
                  return false;
              }
              String group = null;
              if (!policy.equals(cipherHash)) {
                  group = policy.split(";")[1];
              }
              if (group == null && policyType.toLowerCase().matches("ike")) {
                  return false; // StrongSwan requires a DH group for the IKE policy
              }
              if (group != null && !group.matches("modp1024|modp1536|modp2048|modp3072|modp4096|modp6144|modp8192")) {
                  return false;
              }
          }
          return true;
      }
focal_method.class_method_signature: NetUtils.isValidS2SVpnPolicy(final String policyType, final String policys)
focal_method.full_signature: public static boolean isValidS2SVpnPolicy(final String policyType, final String policys)
focal_method.identifier: isValidS2SVpnPolicy
focal_method.invocations: isEmpty isEmpty split isEmpty split isEmpty split matches matches equals split matches toLowerCase matches
focal_method.modifiers: public static
focal_method.parameters: (final String policyType, final String policys)
focal_method.return: boolean
focal_method.signature: boolean isValidS2SVpnPolicy(final String policyType, final String policys)