Package jpcap

Class NetworkInterface


  • public class NetworkInterface
    extends java.lang.Object
    This class represents a network interface.
    Author:
    kfujii
    • Field Summary

      Fields 
      Modifier and Type Field Description
      NetworkInterfaceAddress[] addresses
      Network addresses assigned the network interface.
      java.lang.String datalink_description
      Description about the datalink of the network interface.
      java.lang.String datalink_name
      Name of the datalink of the network interface
      java.lang.String description
      Description about the network interface (e.g., "3Com ...").
      boolean loopback
      TRUE if this is a loopback interface
      byte[] mac_address
      Ethernet MAC address of the network interface
      java.lang.String name
      Name of the network interface
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkInterface​(java.lang.String name, java.lang.String description, boolean loopback, java.lang.String datalink_name, java.lang.String datalink_description, byte[] mac, NetworkInterfaceAddress[] addresses)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • name

        public java.lang.String name
        Name of the network interface
      • description

        public java.lang.String description
        Description about the network interface (e.g., "3Com ..."). May be null.
      • loopback

        public boolean loopback
        TRUE if this is a loopback interface
      • datalink_name

        public java.lang.String datalink_name
        Name of the datalink of the network interface
      • datalink_description

        public java.lang.String datalink_description
        Description about the datalink of the network interface. May be null.
      • mac_address

        public byte[] mac_address
        Ethernet MAC address of the network interface
      • addresses

        public NetworkInterfaceAddress[] addresses
        Network addresses assigned the network interface. May be null if it is a non-IP (e.g. NetBios) address.
    • Constructor Detail

      • NetworkInterface

        public NetworkInterface​(java.lang.String name,
                                java.lang.String description,
                                boolean loopback,
                                java.lang.String datalink_name,
                                java.lang.String datalink_description,
                                byte[] mac,
                                NetworkInterfaceAddress[] addresses)