Add abstract IP header class to unify IPv4 and IPv6 header classes

Change-Id: Ia932dad67f64595b52b6fbc7dc43a13f64d53796
diff --git a/utils/misc/src/main/java/org/onlab/packet/IPv4.java b/utils/misc/src/main/java/org/onlab/packet/IPv4.java
index dc51689..ac27918 100644
--- a/utils/misc/src/main/java/org/onlab/packet/IPv4.java
+++ b/utils/misc/src/main/java/org/onlab/packet/IPv4.java
@@ -14,9 +14,6 @@
  * limitations under the License.
  */
 
-/**
- *
- */
 package org.onlab.packet;
 
 import java.nio.ByteBuffer;
@@ -31,7 +28,7 @@
 /**
  * Implements IPv4 packet format.
  */
-public class IPv4 extends BasePacket {
+public class IPv4 extends IP {
     public static final byte PROTOCOL_ICMP = 0x1;
     public static final byte PROTOCOL_IGMP = 0x2;
     public static final byte PROTOCOL_TCP = 0x6;
@@ -79,18 +76,12 @@
         this.isTruncated = false;
     }
 
-    /**
-     * @return the version
-     */
+    @Override
     public byte getVersion() {
         return this.version;
     }
 
-    /**
-     * @param version
-     *            the version to set
-     * @return this
-     */
+    @Override
     public IPv4 setVersion(final byte version) {
         this.version = version;
         return this;