public static final class IPHeader.RouteRecordOption extends IPHeader.RouteOption
m_addrs
CODE_END_OF_OPTION_LIST, CODE_LOOSE_SOURCE_ROUTE, CODE_ROUTE_RECORD, CODE_STRICT_SOURCE_ROUTE, m_code
Constructor and Description |
---|
RouteRecordOption(int capacity)
Constructs an empty route record with space for capacity
addresses to be recoreded.
|
RouteRecordOption(IPv4Address[] addrs)
Constructs a new instance with the give addresses set in the option
header
|
RouteRecordOption(List<IPv4Address> addrs)
Constructs a new instance with the given addresses stored in the
option.
|
iterator, size
getOptionClass, getOptionNumber, isOptionCopied
public RouteRecordOption(int capacity)
capacity
- The number of addresses to record, max = 9.public RouteRecordOption(IPv4Address[] addrs)
addrs
- The list of addresses for the loose source route.IndexOutOfBoundsException
- Thrown if the number of addresses is to large for the
optionpublic RouteRecordOption(List<IPv4Address> addrs)
addrs
- The list of addresses for the loose source route.IndexOutOfBoundsException
- Thrown if the number of addresses is to large for the
optionCopyright © 2002–2023 The OpenNMS Group, Inc.. All rights reserved.