java.lang.Object
org.pcap4j.core.AbstractPcapAddress
- All Implemented Interfaces:
PcapAddress
- Direct Known Subclasses:
PcapIpV4Address,PcapIpV6Address
- Since:
- pcap4j 0.9.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InetAddressprivate final InetAddressprivate final InetAddressprivate static final org.slf4j.Loggerprivate final InetAddress -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPcapAddress(NativeMappings.pcap_addr pcapAddr, short saFamily, String devName) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected abstract InetAddresstoString()private void
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
address
-
netmask
-
broadcastAddr
-
dstAddr
-
-
Constructor Details
-
AbstractPcapAddress
-
-
Method Details
-
warn
-
getAddress
- Specified by:
getAddressin interfacePcapAddress- Returns:
- address or null
-
getNetmask
- Specified by:
getNetmaskin interfacePcapAddress- Returns:
- netmask or null
-
getBroadcastAddress
- Specified by:
getBroadcastAddressin interfacePcapAddress- Returns:
- broadcast address or null
-
getDestinationAddress
- Specified by:
getDestinationAddressin interfacePcapAddress- Returns:
- destination address or null
-
ntoInetAddress
-
toString
-
equals
-
hashCode
public int hashCode()
-