tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.packet; |
| 2 | |
alshabib | 369d294 | 2014-09-12 17:59:35 -0700 | [diff] [blame] | 3 | |
alshabib | e703156 | 2014-09-12 18:17:37 -0700 | [diff] [blame] | 4 | |
tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 5 | /** |
| 6 | * Abstraction of an inbound packet processor. |
| 7 | */ |
| 8 | public interface PacketProcessor { |
| 9 | |
alshabib | 369d294 | 2014-09-12 17:59:35 -0700 | [diff] [blame] | 10 | 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 | |
tom | 613d814 | 2014-09-11 15:09:37 -0700 | [diff] [blame] | 14 | /** |
| 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 | } |