variable ICMP_TYPE

Common ICMPv4 type values (RFC 792 and successors).

Examples

Example 1

import { assertEquals } from "@std/assert";
import { ICMP_TYPE } from "@binstruct/icmp";

assertEquals(ICMP_TYPE.ECHO_REQUEST, 8);
assertEquals(ICMP_TYPE.ECHO_REPLY, 0);

Properties

ECHO_REPLY: number

Echo Reply (RFC 792)

Destination Unreachable (RFC 792)

Source Quench (deprecated by RFC 6633)

REDIRECT: number

Redirect (RFC 792)

Echo Request (RFC 792)

Router Advertisement (RFC 1256)

Router Solicitation (RFC 1256)

Time Exceeded (RFC 792)

Parameter Problem (RFC 792)

TIMESTAMP: number

Timestamp Request (RFC 792)

Timestamp Reply (RFC 792)