public class Ip extends Object implements Protocol
Ip.Builder
(mutable).
Includes support for the following OpenFlow match fields:
Modifier and Type | Class and Description |
---|---|
static class |
Ip.Builder
Builder (mutable) used to create new protocol instances.
|
Modifier and Type | Method and Description |
---|---|
int |
checkSum()
Returns the decoded check sum.
|
boolean |
doNotFrag()
Returns the flag indicating not to fragment this packet.
|
IpAddress |
dstAddr()
Returns the destination address.
|
int |
fragOffset()
Returns the fragment offset.
|
int |
hdrLen()
Returns the decoded header length (in octets).
|
ProtocolId |
id()
Returns the protocol ID.
|
int |
ident()
Returns the identifier value assigned by the sender.
|
boolean |
moreFragToCome()
Returns the flag indicating that more fragments are coming.
|
byte[] |
options()
Returns a copy of the option bytes.
|
IpAddress |
srcAddr()
Returns the source address.
|
String |
toDebugString()
Returns the protocol debug string.
|
IpTosDsfc |
tosDsfc()
Returns the TOS Differentiated Services Field Codepoints (DSFC) type.
|
IpTosEcn |
tosEcn()
Returns the TOS Explicit Congestion Notification (ECN) type.
|
String |
toString() |
int |
totalLen()
Returns the decoded length (in octets) of the datagram including the
internet header and data.
|
int |
ttl()
Returns the Time to Live seconds.
|
IpType |
type()
Returns the next (payload) protocol type.
|
public ProtocolId id()
Protocol
public int ident()
public IpTosDsfc tosDsfc()
public IpTosEcn tosEcn()
public int fragOffset()
public boolean doNotFrag()
public boolean moreFragToCome()
public int ttl()
public IpType type()
public int checkSum()
public IpAddress dstAddr()
public IpAddress srcAddr()
public byte[] options()
public int hdrLen()
public int totalLen()
public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2016. All Rights Reserved.