2 * Copyright (c) 2015 Cable Television Laboratories, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.pcmm.gates;
12 * The IPv6 Classifier object also specifies the packet matching rules associated with a Gate, when IPv6 Addresses are
13 * used. As defined in Sections 6.4.3.1 and 6.4.3.2, for Unicast Gates multiple IPv6 Classifier objects may be included
14 * in the Gate-Set to allow for complex classifier rules. However, since the ordering of objects in a message and the
15 * order of processing those objects is not mandated, an AM SHOULD NOT send a GateSet with multiple IPv6
16 * Classifiers with the same ClassificationID, yet different Actions. When an AM is using IPv6 Classifier objects, at
17 * least one IPv6 Classifier MUST be provided by the PDP in all Gate-Set messages. For Unicast Gates more than one
18 * IPv6 Classifier is allowed. For Multicast Gates only one IPv6 Classifier is required to be supported. Since the IPv6
19 * Classifier is based on the DOCSIS IPv6 Classifier, all DOCSIS classifier semantics apply, with the exeption that at
20 * least one IPv6 Classifier be present in a Gate-Set message.
22 public interface IIPv6Classifier extends IExtendedClassifier {
27 // flags: Flow Label match enable flag
28 FlowLabel getFlowLabelEnableFlag();
45 // Source Prefix Length
46 byte getSourcePrefixLen();
48 // Destination Prefix Length
49 byte getDestinationPrefixLen();
52 * The valid activation state values
56 IRRELEVANT((byte) 0), VALID((byte) 1);
58 FlowLabel(byte value) {
62 public byte getValue() {
66 public static FlowLabel valueOf(byte v) {
69 return FlowLabel.IRRELEVANT;
71 return FlowLabel.VALID;
73 throw new IllegalArgumentException("not supported value");