Package jpcap
Class NetworkInterface
java.lang.Object
jpcap.NetworkInterface
This class represents a network interface.
- Author:
- kfujii
-
Field Summary
FieldsModifier and TypeFieldDescriptionNetwork addresses assigned the network interface.Description about the datalink of the network interface.Name of the datalink of the network interfaceDescription about the network interface (e.g., "3Com ...").boolean
TRUE if this is a loopback interfacebyte[]
Ethernet MAC address of the network interfaceName of the network interface -
Constructor Summary
ConstructorsConstructorDescriptionNetworkInterface
(String name, String description, boolean loopback, String datalink_name, String datalink_description, byte[] mac, NetworkInterfaceAddress[] addresses) -
Method Summary
-
Field Details
-
name
Name of the network interface -
description
Description about the network interface (e.g., "3Com ..."). May be null. -
loopback
public boolean loopbackTRUE if this is a loopback interface -
datalink_name
Name of the datalink of the network interface -
datalink_description
Description about the datalink of the network interface. May be null. -
mac_address
public byte[] mac_addressEthernet MAC address of the network interface -
addresses
Network addresses assigned the network interface. May be null if it is a non-IP (e.g. NetBios) address.
-
-
Constructor Details
-
NetworkInterface
public NetworkInterface(String name, String description, boolean loopback, String datalink_name, String datalink_description, byte[] mac, NetworkInterfaceAddress[] addresses)
-