Class PcapIpV6Address

  • All Implemented Interfaces:
    PcapAddress

    public final class PcapIpV6Address
    extends java.lang.Object
    Since:
    pcap4j 0.9.15
    Author:
    Kaito Yamada
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.net.Inet6Address getAddress()  
      java.net.Inet6Address getBroadcastAddress()  
      java.net.Inet6Address getDestinationAddress()  
      java.net.Inet6Address getNetmask()  
      int hashCode()  
      protected java.net.Inet6Address ntoInetAddress​(org.pcap4j.core.NativeMappings.sockaddr sa)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • ntoInetAddress

        protected java.net.Inet6Address ntoInetAddress​(org.pcap4j.core.NativeMappings.sockaddr sa)
      • getAddress

        public java.net.Inet6Address getAddress()
        Specified by:
        getAddress in interface PcapAddress
        Returns:
        address or null
      • getNetmask

        public java.net.Inet6Address getNetmask()
        Specified by:
        getNetmask in interface PcapAddress
        Returns:
        netmask or null
      • getBroadcastAddress

        public java.net.Inet6Address getBroadcastAddress()
        Specified by:
        getBroadcastAddress in interface PcapAddress
        Returns:
        broadcast address or null
      • getDestinationAddress

        public java.net.Inet6Address getDestinationAddress()
        Specified by:
        getDestinationAddress in interface PcapAddress
        Returns:
        destination address or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object