Lines Matching defs:ipType
55 private IPType ipType;
136 * @param ipType The type of the ACI IP address (IPv4 or 6).
142 private PatternIP(IPType ipType, byte[] ruleAddrBytes,
144 this.ipType=ipType;
162 IPType ipType=IPType.IPv4;
166 ipType = IPType.IPv6;
174 int prefix = getPrefixValue(ipType, s.length, expr, prefixStr);
175 prefixBytes=getPrefixBytes(prefix, ipType);
186 int prefix = getPrefixValue(ipType, 1, expr, null);
187 prefixBytes=getPrefixBytes(prefix, ipType);
193 if(ipType == IPType.IPv4) {
201 ipType=IPType.IPv4;
202 prefixBytes=getPrefixBytes(IPV4MAXPREFIX, ipType);
205 return new PatternIP(ipType, addrBytes, prefixBytes, wildCardBitSet);
212 * @param ipType The type of the expression, either IPv6 or IPv4.
223 getPrefixValue(IPType ipType, int numParts, String expr, String prefixStr)
228 if(ipType == IPType.IPv6) {
261 * @param ipType The type of the prefix, either IPv6 or IPv4.
265 private static byte[] getPrefixBytes(int prefix, IPType ipType) {
268 if(ipType==IPType.IPv6) {
409 IPType ipType=IPType.IPv4;
412 ipType=IPType.IPv6;
416 ipType=IPType.IPv4;
419 if(ipType != this.ipType) {