Package jpcap

Class NetworkInterfaceAddress


  • public class NetworkInterfaceAddress
    extends java.lang.Object
    This class represents a network address assigned to a network interface.
    Author:
    kfujii
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.net.InetAddress address
      Address of the network interface
      java.net.InetAddress broadcast
      Broadcast address of the network interface.
      java.net.InetAddress destination
      Destination address of the network interface (for P2P connection).
      java.net.InetAddress subnet
      Subnet mask of the network interface
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkInterfaceAddress​(byte[] address, byte[] subnet, byte[] broadcast, byte[] destination)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • address

        public java.net.InetAddress address
        Address of the network interface
      • subnet

        public java.net.InetAddress subnet
        Subnet mask of the network interface
      • broadcast

        public java.net.InetAddress broadcast
        Broadcast address of the network interface. May be null.
      • destination

        public java.net.InetAddress destination
        Destination address of the network interface (for P2P connection). May be null.
    • Constructor Detail

      • NetworkInterfaceAddress

        public NetworkInterfaceAddress​(byte[] address,
                                       byte[] subnet,
                                       byte[] broadcast,
                                       byte[] destination)