public abstract static class IPHeader.Option extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CODE_END_OF_OPTION_LIST
Defines the code for the End-Of-Options list
|
static int |
CODE_LOOSE_SOURCE_ROUTE
Defines the code for the loose source routing option
|
static int |
CODE_ROUTE_RECORD
Defines the code for the packet route record option.
|
static int |
CODE_STRICT_SOURCE_ROUTE
Defines the code for the strict soruce routing option
|
protected int |
m_code
The single byte that defiend the copied bit, class, and code for the
option
|
Modifier | Constructor and Description |
---|---|
protected |
Option(byte code)
Class constructor that is only available to the derived classes of
the Option class.
|
Modifier and Type | Method and Description |
---|---|
int |
getOptionClass()
Returns the class for the option.
|
int |
getOptionNumber()
Returns the option number for the instance
|
boolean |
isOptionCopied()
Returns true if the copy flag is set in the options header
|
protected int m_code
public static final int CODE_END_OF_OPTION_LIST
public static final int CODE_LOOSE_SOURCE_ROUTE
public static final int CODE_STRICT_SOURCE_ROUTE
public static final int CODE_ROUTE_RECORD
Copyright © 2002–2023 The OpenNMS Group, Inc.. All rights reserved.