*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: inet6_putscopeid | Section: 3 | Source: MINIX | File: inet6_putscopeid.3
INET6_GETSCOPEID(3) FreeBSD Library Functions Manual INET6_GETSCOPEID(3) NAME inet6_getscopeid, inet6_putscopeid - IPv6 scope id encoding and decoding functions SYNOPSIS #include <netinet/in.h> void inet6_getscopeid(struct sockaddr_in6 *sin6, int flags); void inet6_putscopeid(struct sockaddr_in6 *sin6, int flags); DESCRIPTION These functions implement a KAME-specific extension that encodes and decodes the scope id inside in the 3rd and 4th byte of the address, for link-local, site-local, and multicast-link-local addresses. The scope id helps deciding which interface is used for packets of that type. Typically those two bytes are 0 for these kinds of addresses. The scope id is stored in network byte order. The inet6_getscopeid() function retrieves the scope id from the 3rd and the 4th address bytes (from the sin6_addr member of sin6), and sets the sin6_scope_id from them. It then clears the two address bytes. The inet6putscopeid() function stores the scope id found in sin6_scope_id into the 3rd and 4th byte of the address (into the sin6_addr member of sin6). It then clears the sin6_scope_id member of sin6. The flags argument controls for which addresses this action is performed. It can be a combination of: o INET6_IS_ADDR_LINKLOCAL o INET6_IS_ADDR_MC_LINKLOCAL o INET6_IS_ADDR_SITELOCAL HISTORY These functions first appeared in NetBSD 7.0. FreeBSD 14.1-RELEASE-p8 October 31, 2013 FreeBSD 14.1-RELEASE-p8

Navigation Options