Class Pcap4jPropertiesLoader
java.lang.Object
org.pcap4j.Pcap4jPropertiesLoader
- Since:
- pcap4j 1.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final Stringprivate static final intprivate static final intstatic final Stringprivate static final intprivate static final intprivate static final intstatic final Stringprivate static final intstatic final Stringprivate static final intstatic final Stringprivate static final intprivate static final Pcap4jPropertiesLoaderprivate static final Stringprivate PropertiesLoaderstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor BSD including Mac OS XFor Linuxprivate intprivate intDLT_RAWstatic Pcap4jPropertiesLoader
-
Field Details
-
KEY_PREFIX
-
PCAP4J_PROPERTIES_PATH_KEY
-
AF_INET_KEY
-
AF_INET6_KEY
-
AF_PACKET_KEY
-
AF_LINK_KEY
-
DLT_RAW_KEY
-
AF_INET_DEFAULT
private static final int AF_INET_DEFAULT- See Also:
-
AF_PACKET_DEFAULT
private static final int AF_PACKET_DEFAULT- See Also:
-
AF_LINK_DEFAULT
private static final int AF_LINK_DEFAULT- See Also:
-
DLT_RAW_DEFAULT
private static final int DLT_RAW_DEFAULT- See Also:
-
DLT_RAW_OPENBSD
private static final int DLT_RAW_OPENBSD- See Also:
-
AF_INET6_DEFAULT
private static final int AF_INET6_DEFAULT- See Also:
-
AF_INET6_LINUX
private static final int AF_INET6_LINUX- See Also:
-
AF_INET6_FREEBSD
private static final int AF_INET6_FREEBSD- See Also:
-
AF_INET6_MAC
private static final int AF_INET6_MAC- See Also:
-
INSTANCE
-
loader
-
-
Constructor Details
-
Pcap4jPropertiesLoader
private Pcap4jPropertiesLoader()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of Pcap4jPropertiesLoader.
-
getAfInet
- Returns:
- address family number for IPv4 addresses. Never null.
-
getAfInet6
- Returns:
- address family numbers for IPv6 addresses. Never null.
-
getAfPacket
For Linux- Returns:
- address family numbers for link layer addresses. Never null.
-
getAfLink
For BSD including Mac OS X- Returns:
- address family numbers for link layer addresses. Never null.
-
getDltRaw
-
getDefaultAfInet6
private int getDefaultAfInet6()- Returns:
- The default address family for IPv6 addresses (platform specific)
-
getDefaultDltRaw
private int getDefaultDltRaw()- Returns:
- The default value for DLT_RAW (platform specific)
-