function isAddressv6Benchmarking
isAddressv6Benchmarking(address: bigint): boolean

Checks if an IPv6 address is in the benchmarking range (RFC 5180).

Benchmarking range: 2001:2::/48

Examples

Example 1

import { assert, assertEquals } from "@std/assert";
import { isAddressv6Benchmarking } from "@hertzg/ip/classifyv6";
import { parseAddressv6 } from "@hertzg/ip/addressv6";

assert(isAddressv6Benchmarking(parseAddressv6("2001:2::1").address));
assertEquals(isAddressv6Benchmarking(parseAddressv6("2001:3::1").address), false);

Parameters

address: bigint

The address as a 128-bit bigint

Return Type

boolean

true if the address is in the benchmarking range

Usage

import { isAddressv6Benchmarking } from "classifyv6.ts";