lttng: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.pcap.core / src / org / eclipse / linuxtools / internal / pcap / core / filter / IPacketFilter.java
CommitLineData
5255c030
VP
1/*******************************************************************************
2 * Copyright (c) 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
12
93d1d135 13package org.eclipse.linuxtools.internal.pcap.core.filter;
5255c030 14
93d1d135 15import org.eclipse.linuxtools.internal.pcap.core.packet.Packet;
5255c030
VP
16
17/**
18 * Interface used to filter the packets.
19 *
20 * @author Vincent Perot
21 */
22public interface IPacketFilter {
23
24 /**
25 * Accept a packet or not.
26 *
27 * @param packet
28 * the packet to accept or not
29 *
30 * @return The decision regarding the packet.
31 */
32 boolean accepts(Packet packet);
33}
This page took 0.027343 seconds and 5 git commands to generate.