blob: 73d21637e6eb4dedd737ac67aeae28919707820b [file] [log] [blame]
Jonathan Hart7804bea2014-01-07 10:50:52 -08001package net.onrc.onos.ofcontroller.proxyarp;
2
3/**
4 * Notification to all ONOS instances to broadcast this packet out the edge of
5 * the network. The edge is defined as any port that doesn't have a link to
6 * another switch. The one exception is the port that the packet was received
7 * on.
8 *
9 */
10public class BroadcastPacketOutNotification extends
11 PacketOutNotification {
12
13 private static final long serialVersionUID = 1L;
14
15 private final long inSwitch;
16 private final short inPort;
17
18 public BroadcastPacketOutNotification(byte[] packet, long inSwitch,
19 short inPort) {
20 super(packet);
21
22 this.inSwitch = inSwitch;
23 this.inPort = inPort;
24 }
25
26 public long getInSwitch() {
27 return inSwitch;
28 }
29
30 public short getInPort() {
31 return inPort;
32 }
33
34}