Jonathan Hart | 7804bea | 2014-01-07 10:50:52 -0800 | [diff] [blame^] | 1 | package 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 | */ |
| 10 | public 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 | } |