MCPcopy Create free account
hub / github.com/F-Stack/f-stack / in6_getscope

Function in6_getscope

freebsd/netinet6/scope6.c:458–466  ·  view source on GitHub ↗

* Return the scope identifier or zero. */

Source from the content-addressed store, hash-verified

456 * Return the scope identifier or zero.
457 */
458uint16_t
459in6_getscope(const struct in6_addr *in6)
460{
461
462 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6))
463 return (in6->s6_addr16[1]);
464
465 return (0);
466}
467
468/*
469 * Returns scope zone id for the unicast address @in6.

Callers 7

sctp_send_initiate_ackFunction · 0.85
in6_gif_lookupFunction · 0.85
ip6_forwardFunction · 0.85
in6_splitscopeFunction · 0.85
selectrouteFunction · 0.85
_in6_cksum_pseudoFunction · 0.85
in6_cksum_partialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected