public final class Inets extends Object
Modifier and Type | Field and Description |
---|---|
static short |
AF_INET
Address family for IPv4.
|
static short |
AF_INET6
Address family for IPv6.
|
static short |
AF_LINK
Address family for link layer interface.
|
static short |
AF_PACKET
Address family for low level packet interface.
|
static short |
AF_UNSPEC
Unspecified address family.
|
public static final short AF_UNSPEC
<sys/socket.h>
as 0.public static final short AF_INET
<sys/socket.h>
.
This value may vary depending on OS.
This value is set to 2 by default and can be changed by setting the property
org.pcap4j.af.inet
(system property or pcap4j-core.jar/org/pcap4j/pcap4j.properties).Pcap4jPropertiesLoader
public static final short AF_INET6
<sys/socket.h>
.
This value varies depending on OS.
By default, this value is set to 30 on Mac OS X, 28 on FreeBSD, 10 on Linux, and 23 on the others.
This value can be changed by setting the property
org.pcap4j.af.inet6
(system property or pcap4j-core.jar/org/pcap4j/pcap4j.properties).Pcap4jPropertiesLoader
public static final short AF_PACKET
<sys/socket.h>
.
This value may vary depending on OS.
This value is set to 17 by default and can be changed by setting the property
org.pcap4j.af.packet
(system property or pcap4j-core.jar/org/pcap4j/pcap4j.properties).Pcap4jPropertiesLoader
public static final short AF_LINK
<sys/socket.h>
.
This value may vary depending on OS.
This value is set to 18 by default and can be changed by setting the property
org.pcap4j.af.link
(system property or pcap4j-core.jar/org/pcap4j/pcap4j.properties).Pcap4jPropertiesLoader
Copyright © 2011–2016 Pcap4J.org. All rights reserved.