blob: 34c750255f3659a47f3bff7e8ff39a16d65b68da [file] [log] [blame]
Harshada Chaundkardcd1b142019-03-25 17:27:44 -04001/*
2 * Copyright 2019-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.packet;
17
18
19/**
20 * Abstraction of incoming packet classifier for filtering.
21 */
22public interface PacketInClassifier {
23
24 /**
25 * Returns true if the packet classifier matches else false.
26 * The matching criterion should be non overlapping with other
27 * implementation of the PacketInClassifier.
28 *
29 * @param packet PacketContext holding the packet information
30 * @return boolean checks whether packet matches classifier
31 */
32 boolean match(PacketContext packet);
33
34}