blob: aef556834bc4df4511c2966ac0436e021e0c8d46 [file] [log] [blame]
tom613d8142014-09-11 15:09:37 -07001package org.onlab.onos.net.packet;
2
alshabib369d2942014-09-12 17:59:35 -07003
alshabibe7031562014-09-12 18:17:37 -07004
tom613d8142014-09-11 15:09:37 -07005/**
6 * Abstraction of an inbound packet processor.
7 */
8public interface PacketProcessor {
9
alshabib369d2942014-09-12 17:59:35 -070010 public static final int ADVISOR_MAX = Integer.MAX_VALUE / 3;
11 public static final int DIRECTOR_MAX = (Integer.MAX_VALUE / 3) * 2;
12 public static final int OBSERVER_MAX = Integer.MAX_VALUE;
13
tom613d8142014-09-11 15:09:37 -070014 /**
15 * Processes the inbound packet as specified in the given context.
16 *
17 * @param context packet processing context
18 */
19 void process(PacketContext context);
20
21}