Make ipv4 packet "use" ethernet-packet. Also add arp-packet support. Fix return...
[l2switch.git] / packethandler / implementation / src / main / java / org / opendaylight / l2switch / packethandler / decoders / ArpDecoder.java
1 package org.opendaylight.l2switch.packethandler.decoders;
2
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;
5
6 /**
7  * ARP (Address Resolution Protocol) Packet Decoder
8  */
9 public class ArpDecoder implements PacketDecoder {
10
11   /**
12    * Decode an EthernetPacket into an ArpPacket
13    */
14   public ArpPacket decode(EthernetPacket ethernetPacket) {
15
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
18     return null;
19   }
20
21 }