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