列挙 IpV6OptionType.IpV6OptionTypeAction
- java.lang.Object
-
- java.lang.Enum<IpV6OptionType.IpV6OptionTypeAction>
-
- org.pcap4j.packet.namednumber.IpV6OptionType.IpV6OptionTypeAction
-
- すべての実装されたインタフェース:
Serializable
,Comparable<IpV6OptionType.IpV6OptionTypeAction>
- 含まれているクラス:
- IpV6OptionType
public static enum IpV6OptionType.IpV6OptionTypeAction extends Enum<IpV6OptionType.IpV6OptionTypeAction>
The act field (The highest-order two bits of the Option Type). This specifies the action that must be taken if the processing IPv6 node does not recognize the Option Type.- 導入されたバージョン:
- pcap4j 0.9.10
- 作成者:
- Kaito
- 関連項目:
- RFC 2460 section 4.2
-
-
列挙型定数の概要
列挙定数 列挙型定数 説明 DISCARD
Discard the packet: 1DISCARD_AND_SEND_ICMP
Discard the packet and, regardless of whether or not the packet's Destination Address was a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 2DISCARD_AND_SEND_ICMP_IF_NOT_MULTICAST
Discard the packet and, only if the packet's Destination Address was not a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 3SKIP
Skip over this option and continue processing the header: 0
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 int
getValue()
static IpV6OptionType.IpV6OptionTypeAction
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)static IpV6OptionType.IpV6OptionTypeAction[]
values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために 使用できます:for (IpV6OptionType.IpV6OptionTypeAction c : IpV6OptionType.IpV6OptionTypeAction.values()) System.out.println(c);
-
-
-
列挙型定数の詳細
-
SKIP
public static final IpV6OptionType.IpV6OptionTypeAction SKIP
Skip over this option and continue processing the header: 0
-
DISCARD
public static final IpV6OptionType.IpV6OptionTypeAction DISCARD
Discard the packet: 1
-
DISCARD_AND_SEND_ICMP
public static final IpV6OptionType.IpV6OptionTypeAction DISCARD_AND_SEND_ICMP
Discard the packet and, regardless of whether or not the packet's Destination Address was a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 2
-
DISCARD_AND_SEND_ICMP_IF_NOT_MULTICAST
public static final IpV6OptionType.IpV6OptionTypeAction DISCARD_AND_SEND_ICMP_IF_NOT_MULTICAST
Discard the packet and, only if the packet's Destination Address was not a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 3
-
-
メソッドの詳細
-
values
public static IpV6OptionType.IpV6OptionTypeAction[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために 使用できます:for (IpV6OptionType.IpV6OptionTypeAction c : IpV6OptionType.IpV6OptionTypeAction.values()) System.out.println(c);
- 戻り値:
- この列挙型の定数を含む、宣言されている順序での配列
-
valueOf
public static IpV6OptionType.IpV6OptionTypeAction valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合
-
getValue
public int getValue()
- 戻り値:
- value
-
-