is_loopback

Return true if the address is a loopback address

Synopsis

bool is_loopback() noexcept;

Declared in file <src/ipv6_address.cpp> at line 64

Description

The unicast address 0:0:0:0:0:0:0:1 is called the loopback address. It may be used by a node to send an IPv6 packet to itself.

Specification

  • 2.5.3. The Loopback Address (rfc4291)