blob: bd64e59c6c5c98fa2dbc05f7e7307851bad2a21a [file] [log] [blame]
Jonathan Hart0961fe82014-04-03 09:56:25 -07001package net.onrc.onos.apps.proxyarp;
Jonathan Hart7804bea2014-01-07 10:50:52 -08002
3import java.io.Serializable;
4
5/**
6 * A PacketOutNotification contains data sent between ONOS instances that
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -07007 * directs other instances to send a packet out a set of ports. This is an
8 * abstract base class that will be subclassed by specific types of
9 * notifications.
Jonathan Hart7804bea2014-01-07 10:50:52 -080010 */
TeruU7feef8a2014-04-03 00:15:49 -070011public abstract class PacketOutNotification implements Serializable{
Jonathan Hart7804bea2014-01-07 10:50:52 -080012
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070013 private static final long serialVersionUID = 1L;
Jonathan Hart7804bea2014-01-07 10:50:52 -080014
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070015 protected final byte[] packet;
TeruU7feef8a2014-04-03 00:15:49 -070016
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070017 /**
18 * Class constructor.
19 * @param packet the packet data to send in the packet-out
20 */
TeruU7feef8a2014-04-03 00:15:49 -070021 public PacketOutNotification() {
22 packet = null;
23 }
24
Jonathan Hart7c9a2fb2014-03-27 09:51:41 -070025 public PacketOutNotification(byte[] packet) {
26 this.packet = packet;
27 }
Jonathan Hart7804bea2014-01-07 10:50:52 -080028}