Constructor and Description |
---|
Gre.Builder()
Create a new builder using the defaults:
|
Gre.Builder(Gre gre)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
Gre |
build()
Creates a new protocol instance from this builder.
|
Gre.Builder |
checkSum(int checkSum)
Sets the optional checksum value.
|
Gre.Builder |
key(long key)
Sets the optional key (can be
Gre.NONE ). |
Gre.Builder |
protoType(EthernetType protoType)
Sets the protocol type.
|
Gre.Builder |
seqNum(long seqNum)
Sets the optional sequence number (can be
Gre.NONE ). |
Gre.Builder |
version(int version)
Sets the version.
|
public Gre.Builder()
version = 0 key = NONE seqNum = NONE checkSum = NONE
public Gre.Builder(Gre gre)
gre
- builder is initialed from this protocol's datapublic Gre build()
public Gre.Builder protoType(EthernetType protoType)
protoType
- hardware type enumerationpublic Gre.Builder version(int version)
version
- the version numberpublic Gre.Builder checkSum(int checkSum)
checkSum
- the checksum valuepublic Gre.Builder key(long key)
Gre.NONE
).key
- the key valuepublic Gre.Builder seqNum(long seqNum)
Gre.NONE
).seqNum
- the sequence number valueCopyright © 2015. All Rights Reserved.