1 package org.opendaylight.l2switch.packethandler.decoders;
3 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.arp.rev140528.ArpPacket;
4 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.ethernet.rev140528.EthernetPacket;
7 * ARP (Address Resolution Protocol) Packet Decoder
9 public class ArpDecoder implements PacketDecoder {
12 * Decode an EthernetPacket into an ArpPacket
14 public ArpPacket decode(EthernetPacket ethernetPacket) {
16 // Create helper method to transfer input ethernetPacket => ArpPacket
17 // Possibly make the "PacketDecoder" interface into an ABSTRACT CLASS, and put this method into it