public class IpV6 extends Object implements Protocol
IpV6.Builder
(mutable).
Includes support for the following OpenFlow match fields:
Modifier and Type | Class and Description |
---|---|
static class |
IpV6.Builder
Builder (mutable) used to create new protocol instances.
|
static class |
IpV6.Option
IPv6 option data store (immutable).
|
Modifier and Type | Method and Description |
---|---|
IpAddress |
dstAddr()
Returns the destination address.
|
int |
flowLabel()
Returns the flow Label.
|
int |
hopLimit()
Returns the hop limit.
|
ProtocolId |
id()
Returns the protocol ID.
|
IpType |
nextHdr()
Returns the next header protocol type.
|
IpType |
nextProtocol()
Returns the decoded type of the next protocol layer (ICMPv6 for example).
|
int |
nextProtocolLen()
Returns the decoded length of the next protocol layer
(ICMPv6 for example).
|
IpV6.Option[] |
options()
Returns a copy of the option array.
|
int |
payloadLen()
Returns the decoded payload length (in octets) of the datagram including
any extension headers.
|
IpAddress |
srcAddr()
Returns the source address.
|
String |
toDebugString()
Returns the protocol debug string.
|
IpTosDsfc |
tosDsfc()
Returns the TOS Differentiated Services Field Codepoints (DSFC) type.
|
IpTosEcn |
tosEcn()
Returns the TOS Explicit Congestion Notification (ECN) type.
|
String |
toString() |
public ProtocolId id()
Protocol
public IpTosDsfc tosDsfc()
public IpTosEcn tosEcn()
public int flowLabel()
public int payloadLen()
public IpType nextHdr()
public IpType nextProtocol()
nextHdr
if there are no
options. If options exist, it will be the last nextHdr
defined
in the last option. If set to IpType.IPV6_NO_NEXT_HDR
there are
no protocol layers following.public int nextProtocolLen()
payloadLen
if there are no options.public int hopLimit()
public IpAddress dstAddr()
public IpAddress srcAddr()
public IpV6.Option[] options()
public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2016. All Rights Reserved.