Constructor and Description |
---|
IpV6.Builder()
Create a new builder using the defaults:
|
IpV6.Builder(IpV6 ip)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
IpV6 |
build()
Creates a new protocol instance from this builder.
|
IpV6.Builder |
dstAddr(IpAddress dstAddr)
Sets the destination address.
|
IpV6.Builder |
flowLabel(int flowLabel)
Sets the flow label.
|
IpV6.Builder |
hopLimit(int hopLimit)
Sets the hop limit.
|
IpV6.Builder |
nextHdr(IpType nextHdr)
Sets the next header field which could be a IPv6 extension option
or the next protocol layer.
|
IpV6.Builder |
options(IpV6.Option[] options)
Sets the options.
|
IpV6.Builder |
srcAddr(IpAddress srcAddr)
Sets the source address.
|
IpV6.Builder |
tosDsfc(IpTosDsfc tosDsfc)
Sets the TOS Differentiated Services Field Codepoints (DSFC) type.
|
IpV6.Builder |
tosEcn(IpTosEcn tosEcn)
Sets the TOS Explicit Congestion Notification (ECN) type.
|
public IpV6.Builder()
tosDsfc = IpTosDsfc.CS0 tosEcn = IpTosEcn.NOT_ECT options = NO_OPTIONS
public IpV6.Builder(IpV6 ip)
ip
- builder is initialed from this protocol's datapublic IpV6 build()
public IpV6.Builder tosDsfc(IpTosDsfc tosDsfc)
tosDsfc
- TOS DSFC typepublic IpV6.Builder tosEcn(IpTosEcn tosEcn)
tosEcn
- TOS ECN typepublic IpV6.Builder flowLabel(int flowLabel)
flowLabel
- flow labelpublic IpV6.Builder nextHdr(IpType nextHdr)
nextHdr
- next header protocol typepublic IpV6.Builder hopLimit(int hopLimit)
hopLimit
- hop limitpublic IpV6.Builder srcAddr(IpAddress srcAddr)
srcAddr
- source addresspublic IpV6.Builder dstAddr(IpAddress dstAddr)
dstAddr
- destination addresspublic IpV6.Builder options(IpV6.Option[] options)
options
- option arrayCopyright © 2015. All Rights Reserved.