lc_hashtoaddr(3)

lc_hashtoaddr3

Create ipv6 multicast addr from supplied hash and flags

Usage

#include <librecast/net.h>

void lc_hashtoaddr(struct in6_addr *addr, unsigned char *hash, size_t hashlen, unsigned char flags);

Compile and link with -llibrecast.

Library

Librecast library (liblibrecast, -llibrecast)

Overview

The lc_hashtoaddr() function creates and returns an IPv6 multicast address in addr from the supplied hash of length hashlen and flags.

The address returned in addr is a valid IPv6 multicast address. The first 8 bits are set to 1. The following 8 bits are set to flags, which should be the valid IPv6 multicast 4 bit flags field as defined in IETF RFC 4291, followed by the 4 bits for multicast scope. The first 14 bytes of hash are used for the remaining 14 bytes of the address.

Return value

The lc_hashtoaddr () function returns no value.

Errors

None.

From liblibrecast-dev 0.9.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.