Package pcap.api.internal
Class PcapInterface
java.lang.Object
pcap.api.internal.PcapInterface
@Inclubating public class PcapInterface extends java.lang.Object implements Interface
Pcap Interface implementation- Author:
- Ardika Rommy Sanjaya
-
Constructor Summary
Constructors Constructor Description PcapInterface(pcap_mapping.pcap_if pcap_if) -
Method Summary
Modifier and Type Method Description Addressaddresses()java.lang.Stringdescription()intflags()booleanisLoopback()Is loopback interface?booleanisRunning()Is interface is running?booleanisUp()Is interface is up?java.util.Iterator<Interface>iterator()java.lang.Stringname()Interfacenext()java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
next
-
name
public java.lang.String name() -
description
public java.lang.String description()- Specified by:
descriptionin interfaceInterface
-
addresses
-
flags
public int flags() -
isLoopback
public boolean isLoopback()Is loopback interface?- Returns:
- true if loopback interface, false otherwise.
-
isUp
public boolean isUp()Is interface is up?- Returns:
- true if interface is up, false otherwise.
-
isRunning
public boolean isRunning()Is interface is running?- Returns:
- true if interface is running, false otherwise.
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Interface>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-