logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lc_hashtoaddr - create IPv6 multicast addr from supplied hash and flags

Description

       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.

Errors

       None.

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       lc_hashtoaddr - create IPv6 multicast addr from supplied hash and flags

Return Value

       The lc_hashtoaddr () function returns no value.

See Also

lc_channel_new(3), lc_channel_close(3), lc_ctx_new(3), lc_socket_new(3), lc_channel_new(3)

LIBRECAST                                          2023-07-23                                   LC_HASHTOADDR(3)

Synopsis

#include<librecast/net.h>voidlc_hashtoaddr(structin6_addr*addr,unsignedchar*hash,size_thashlen,unsignedcharflags);

       Compile and link with -llibrecast.

See Also