|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.protocols.ip.IPHeader.Option
org.opennms.protocols.ip.IPHeader.RouteOption
org.opennms.protocols.ip.IPHeader.RouteRecordOption
public static final class IPHeader.RouteRecordOption
This class represents the route record option that may be part of an IP header. The strict route record records a set of IP addresses that a packet has passed though. As the packet reaches each address the address is added to the the next element in the route.
| Field Summary |
|---|
| Fields inherited from class org.opennms.protocols.ip.IPHeader.RouteOption |
|---|
m_addrs |
| Fields inherited from class org.opennms.protocols.ip.IPHeader.Option |
|---|
CODE_END_OF_OPTION_LIST, CODE_LOOSE_SOURCE_ROUTE, CODE_ROUTE_RECORD, CODE_STRICT_SOURCE_ROUTE, m_code |
| Constructor Summary | |
|---|---|
IPHeader.RouteRecordOption(int capacity)
Constructs an empty route record with space for capacity addresses to be recoreded. |
|
IPHeader.RouteRecordOption(IPv4Address[] addrs)
Constructs a new instance with the give addresses set in the option header |
|
IPHeader.RouteRecordOption(java.util.List<IPv4Address> addrs)
Constructs a new instance with the given addresses stored in the option. |
|
| Method Summary |
|---|
| Methods inherited from class org.opennms.protocols.ip.IPHeader.RouteOption |
|---|
iterator, size |
| Methods inherited from class org.opennms.protocols.ip.IPHeader.Option |
|---|
getOptionClass, getOptionNumber, isOptionCopied |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPHeader.RouteRecordOption(int capacity)
capacity - The number of addresses to record, max = 9.public IPHeader.RouteRecordOption(IPv4Address[] addrs)
addrs - The list of addresses for the loose source route.
java.lang.IndexOutOfBoundsException - Thrown if the number of addresses is to large for the
optionpublic IPHeader.RouteRecordOption(java.util.List<IPv4Address> addrs)
addrs - The list of addresses for the loose source route.
java.lang.IndexOutOfBoundsException - Thrown if the number of addresses is to large for the
option
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||