blob: a201939b20ec27981e40657794df6a7bf3eae190 [file] [log] [blame]
Jonathan Hart7804bea2014-01-07 10:50:52 -08001package net.onrc.onos.ofcontroller.proxyarp;
2
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 */
11public abstract class PacketOutNotification implements Serializable {
12
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;
16
17 /**
18 * Class constructor.
19 * @param packet the packet data to send in the packet-out
20 */
21 public PacketOutNotification(byte[] packet) {
22 this.packet = packet;
23 }
Jonathan Hart7804bea2014-01-07 10:50:52 -080024}