public final class PacketSocketAddress extends SocketAddress
struct sockaddr_ll
.Modifier and Type | Field and Description |
---|---|
byte[] |
sll_addr
Hardware address.
|
short |
sll_hatype
ARP hardware type.
|
int |
sll_ifindex
Interface index.
|
byte |
sll_pkttype
Packet type.
|
short |
sll_protocol
Protocol.
|
Constructor and Description |
---|
PacketSocketAddress(int sll_ifindex,
byte[] sll_addr)
Constructs a new PacketSocketAddress suitable for sending to.
|
PacketSocketAddress(short sll_protocol,
int sll_ifindex)
Constructs a new PacketSocketAddress suitable for binding to.
|
PacketSocketAddress(short sll_protocol,
int sll_ifindex,
short sll_hatype,
byte sll_pkttype,
byte[] sll_addr)
Constructs a new PacketSocketAddress.
|
public short sll_protocol
ETH_P_IPV6
.public int sll_ifindex
public short sll_hatype
ARPHRD_*
constants.public byte sll_pkttype
PACKET_*
constants, such as PACKET_OTHERHOST
.public byte[] sll_addr
public PacketSocketAddress(short sll_protocol, int sll_ifindex, short sll_hatype, byte sll_pkttype, byte[] sll_addr)
public PacketSocketAddress(short sll_protocol, int sll_ifindex)
public PacketSocketAddress(int sll_ifindex, byte[] sll_addr)