public class IcmpOptionV6 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IcmpOptionV6.Type
ICMPv6 option types.
|
Constructor and Description |
---|
IcmpOptionV6(IcmpOptionV6.Type type,
byte[] bytes)
Create a new ICMPv6 option data store for
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP and
IcmpTypeCodeV6.REDIRECT_MSG_NDP messages. |
IcmpOptionV6(IcmpOptionV6.Type type,
long mtu)
Create a new ICMPv6 option data store for
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP messages. |
IcmpOptionV6(IcmpOptionV6.Type type,
MacAddress linkLayerAddr)
Create a new ICMPv6 option data store for
IcmpTypeCodeV6.ROUTER_SOLICT_NDP ,
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP , or
IcmpTypeCodeV6.NEIGHBOR_SOLICIT_NDP messages. |
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
Returns a copy of the option payload bytes.
|
MacAddress |
linkLayerAddr()
Returns the link-layer address or null.
|
long |
mtu()
Returns the MTU value.
|
String |
toString() |
IcmpOptionV6.Type |
type()
Returns this option's type.
|
public IcmpOptionV6(IcmpOptionV6.Type type, MacAddress linkLayerAddr)
IcmpTypeCodeV6.ROUTER_SOLICT_NDP
,
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP
, or
IcmpTypeCodeV6.NEIGHBOR_SOLICIT_NDP
messages.type
- this option's typelinkLayerAddr
- link layer addresspublic IcmpOptionV6(IcmpOptionV6.Type type, long mtu)
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP
messages.type
- this option's typemtu
- MTU valuepublic IcmpOptionV6(IcmpOptionV6.Type type, byte[] bytes)
IcmpTypeCodeV6.ROUTER_ADVERTISE_NDP
and
IcmpTypeCodeV6.REDIRECT_MSG_NDP
messages.type
- this option's typebytes
- prefix information or redirect header/payload bytespublic IcmpOptionV6.Type type()
public long mtu()
public MacAddress linkLayerAddr()
public byte[] bytes()
Copyright © 2015. All Rights Reserved.