public interface InetHeader extends ProtocolHeader
InetHeader describes the contents of IP header.| Modifier and Type | Method and Description |
|---|---|
IpNetwork |
getDestinationAddress()
Return the destination IP address.
|
short |
getDscp()
Return the DSCP field value.
|
short |
getProtocol()
Return the IP protocol number.
|
IpNetwork |
getSourceAddress()
Return the source IP address.
|
boolean |
setDestinationAddress(IpNetwork ipn)
Set the destination IP address.
|
void |
setDscp(short value)
Set the DSCP field value.
|
boolean |
setSourceAddress(IpNetwork ipn)
Set the source IP address.
|
setDescriptionIpNetwork getSourceAddress()
IpNetwork instance which represents the source
IP address.boolean setSourceAddress(IpNetwork ipn)
ipn - An IpNetwork instance which represents the source
IP address.true if the given address has been successfully set.
false if the given address has been rejected.IpNetwork getDestinationAddress()
IpNetwork instance which represents the destination
IP address.boolean setDestinationAddress(IpNetwork ipn)
ipn - An IpNetwork instance which represents the
destination IP address.true if the given address has been successfully set.
false if the given address has been rejected.short getProtocol()
short getDscp()
void setDscp(short value)
value - A short value which indicates the DSCP field value.Copyright © 2018 OpenDaylight. All rights reserved.