package jpcap;
/**
* This class represents a network interface.
*
* @author kfujii
*/
public class NetworkInterface
{
/**
* Name of the network interface
*/
public String name;
/**
* Description about the network interface (e.g., "3Com ..."). May be null.
*/
public String description;
/**
* TRUE if this is a loopback interface
*/
public boolean loopback;
/**
* Name of the datalink of the network interface
*/
public String datalink_name;
/**
* Description about the datalink of the network interface. May be null.
*/
public String datalink_description;
/**
* Ethernet MAC address of the network interface
*/
public byte[] mac_address;
/**
* Network addresses assigned the network interface. May be null if it is a non-IP (e.g. NetBios) address.
*/
public NetworkInterfaceAddress[] addresses;
public NetworkInterface(String name, String description, boolean loopback, String datalink_name, String datalink_description, byte[] mac, NetworkInterfaceAddress[] addresses)
{
this.name = name;
this.description = description;
this.loopback = loopback;
this.datalink_name = datalink_name;
this.datalink_description = datalink_description;
this.mac_address = mac;
this.addresses = addresses;
}
}