| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Method and Description |
|---|---|
IPv4 |
IPv4.setChecksum(short checksum) |
IPv4 |
IPv4.setDestinationAddress(int destinationAddress) |
IPv4 |
IPv4.setDestinationAddress(String destinationAddress) |
IPv4 |
IPv4.setDiffServ(byte diffServ)
Sets the DiffServ octet (including the DSCP and ECN bits).
|
IPv4 |
IPv4.setDscp(byte dscp)
Sets the DSCP value (6 bits).
|
IPv4 |
IPv4.setEcn(byte ecn)
Sets the ECN value (2 bits).
|
IPv4 |
IPv4.setFlags(byte flags) |
IPv4 |
IPv4.setFragmentOffset(short fragmentOffset) |
IPv4 |
IPv4.setIdentification(short identification) |
IPv4 |
IPv4.setOptions(byte[] options) |
IPv4 |
IPv4.setProtocol(byte protocol) |
IPv4 |
IPv4.setSourceAddress(int sourceAddress) |
IPv4 |
IPv4.setSourceAddress(String sourceAddress) |
IPv4 |
IPv4.setTtl(byte ttl) |
IPv4 |
IPv4.setVersion(byte version) |
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<IPv4> |
IPv4.deserializer()
Deserializer function for IPv4 packets.
|
Copyright © 2016. All rights reserved.