Class PacketUtil


  • public final class PacketUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Integer getEtherTypeFromPacket​(byte[] packetData)  
      static boolean isIpv4Packet​(byte[] packetData)  
      static boolean isIpv6NaPacket​(byte[] packetData)  
      static boolean isIpv6Packet​(byte[] packetData)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getEtherTypeFromPacket

        public static java.lang.Integer getEtherTypeFromPacket​(byte[] packetData)
      • isIpv4Packet

        public static boolean isIpv4Packet​(byte[] packetData)
      • isIpv6Packet

        public static boolean isIpv6Packet​(byte[] packetData)
      • isIpv6NaPacket

        public static boolean isIpv6NaPacket​(byte[] packetData)