public class ICMPv4Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ICMP_CODE_OFFSET |
static int |
ICMP_DATA_OFFSET |
static int |
ICMP_ECHO_REQUEST_ID_OFFSET |
static int |
ICMP_ECHO_REQUEST_PAYLOAD_OFFSET |
static int |
ICMP_ECHO_REQUEST_SEQ_OFFSET |
static int |
ICMP_HDR_LEN |
static int |
ICMP_REST_OF_HDR_LEN |
static int |
ICMP_REST_OF_HDR_OFFSET |
static int |
ICMP_TYPE_OFFSET |
| Modifier and Type | Method and Description |
|---|---|
static short |
decodeCode(byte[] packetData) |
static short |
decodeType(byte[] packetData) |
static byte[] |
extractEchoRequestPayload(byte[] packetData) |
static byte[] |
extractPayload(byte[] packetData) |
static byte[] |
extractRestOfHeader(byte[] packetData) |
public static final int ICMP_TYPE_OFFSET
public static final int ICMP_CODE_OFFSET
public static final int ICMP_REST_OF_HDR_OFFSET
public static final int ICMP_REST_OF_HDR_LEN
public static final int ICMP_DATA_OFFSET
public static final int ICMP_HDR_LEN
public static final int ICMP_ECHO_REQUEST_ID_OFFSET
public static final int ICMP_ECHO_REQUEST_SEQ_OFFSET
public static final int ICMP_ECHO_REQUEST_PAYLOAD_OFFSET
public static short decodeType(byte[] packetData)
public static short decodeCode(byte[] packetData)
public static byte[] extractRestOfHeader(byte[] packetData)
public static byte[] extractPayload(byte[] packetData)
public static byte[] extractEchoRequestPayload(byte[] packetData)
Copyright © 2019. All rights reserved.