Lines Matching defs:ipType
56 private IPType ipType;
146 * @param ipType The type of the ACI IP address (IPv4 or 6).
152 private PatternIP(IPType ipType, byte[] ruleAddrBytes,
154 this.ipType=ipType;
172 IPType ipType=IPType.IPv4;
176 ipType = IPType.IPv6;
181 int prefix = getPrefixValue(ipType, s.length, expr, prefixStr);
182 prefixBytes=getPrefixBytes(prefix, ipType);
192 int prefix = getPrefixValue(ipType, 1, expr, null);
193 prefixBytes=getPrefixBytes(prefix, ipType);
200 if(ipType == IPType.IPv4)
208 ipType=IPType.IPv4;
209 prefixBytes=getPrefixBytes(IPV4MAXPREFIX, ipType);
212 return new PatternIP(ipType, addrBytes, prefixBytes, wildCardBitSet);
219 * @param ipType The type of the expression, either IPv6 or IPv4.
230 getPrefixValue(IPType ipType, int numParts, String expr, String prefixStr)
235 if(ipType == IPType.IPv6) {
267 * @param ipType The type of the prefix, either IPv6 or IPv4.
271 private static byte[] getPrefixBytes(int prefix, IPType ipType) {
274 if(ipType==IPType.IPv6)
413 IPType ipType=IPType.IPv4;
416 ipType=IPType.IPv6;
420 ipType=IPType.IPv4;
422 if(ipType != this.ipType)