public static final class Ipv4Header.Builder
extends java.lang.Object
Ipv4Header
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
Ipv4Header . |
Modifier and Type | Method and Description |
---|---|
Ipv4Header |
build() |
Ipv4Header.Builder |
setDstIp(java.lang.String dstIp)
The destination ip address.
|
Ipv4Header.Builder |
setFlags(java.lang.Long flags)
IP flags format: int64
|
Ipv4Header.Builder |
setProtocol(java.lang.Long protocol)
IP protocol - defaults to ICMP format: int64
|
Ipv4Header.Builder |
setSrcIp(java.lang.String srcIp)
The source ip address.
|
Ipv4Header.Builder |
setSrcSubnetPrefixLen(java.lang.Long srcSubnetPrefixLen)
This is used together with src_ip to calculate dst_ip for broadcast when dst_ip
is not given; not used in all other cases.
|
Ipv4Header.Builder |
setTtl(java.lang.Long ttl)
Time to live (ttl) format: int64
|
public Builder()
Ipv4Header
.public Ipv4Header.Builder setDstIp(java.lang.String dstIp)
dstIp
- New value for the property.public Ipv4Header.Builder setFlags(java.lang.Long flags)
flags
- New value for the property.public Ipv4Header.Builder setProtocol(java.lang.Long protocol)
protocol
- New value for the property.public Ipv4Header.Builder setSrcIp(java.lang.String srcIp)
srcIp
- New value for the property.public Ipv4Header.Builder setSrcSubnetPrefixLen(java.lang.Long srcSubnetPrefixLen)
srcSubnetPrefixLen
- New value for the property.public Ipv4Header.Builder setTtl(java.lang.Long ttl)
ttl
- New value for the property.public Ipv4Header build()