Constructor and Description |
---|
IcmpV6.Builder()
Create a new builder using the defaults:
|
IcmpV6.Builder(IcmpV6 icmp)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
IcmpV6 |
build()
Creates a new protocol instance from this builder.
|
IcmpV6.Builder |
bytes(byte[] bytes)
Sets the payload bytes.
|
IcmpV6.Builder |
neighborAdvertiseData(IcmpV6.NeighborAdvertiseData naData)
Sets the neighbor advertise data and the appropriate type/code.
|
IcmpV6.Builder |
neighborSolicitData(IcmpV6.NeighborSolicitData nsData)
Sets the neighbor solicitation data and the appropriate type/code.
|
IcmpV6.Builder |
options(IcmpOptionV6[] options)
Sets the options.
|
IcmpV6.Builder |
redirectData(IcmpV6.RedirectData rData)
Sets the redirect message data and the appropriate type/code.
|
IcmpV6.Builder |
routerAdvertiseData(IcmpV6.RouterAdvertiseData raData)
Sets the router advertise data and the appropriate type/code.
|
IcmpV6.Builder |
typeCode(IcmpTypeCodeV6 typeCode)
Sets the type/code enumeration..
|
public IcmpV6.Builder()
typeCode = NONE bytes = EMPTY_BYTES routerAdvertiseData = null neighborSolicitData = null neighborAdvertiseData = null redirectData = null options = NO_OPTIONS
public IcmpV6.Builder(IcmpV6 icmp)
icmp
- builder is initialed from this protocol's datapublic IcmpV6 build()
public IcmpV6.Builder typeCode(IcmpTypeCodeV6 typeCode)
typeCode
- type/code enumerationpublic IcmpV6.Builder bytes(byte[] bytes)
bytes
- payload bytespublic IcmpV6.Builder routerAdvertiseData(IcmpV6.RouterAdvertiseData raData)
raData
- router advertise datapublic IcmpV6.Builder neighborSolicitData(IcmpV6.NeighborSolicitData nsData)
nsData
- neighbor solicitation datapublic IcmpV6.Builder neighborAdvertiseData(IcmpV6.NeighborAdvertiseData naData)
naData
- neighbor advertise datapublic IcmpV6.Builder redirectData(IcmpV6.RedirectData rData)
rData
- redirect message datapublic IcmpV6.Builder options(IcmpOptionV6[] options)
options
- option arrayCopyright © 2015. All Rights Reserved.