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

Function in6_splitscope

freebsd/netinet6/scope6.c:520–530  ·  view source on GitHub ↗

* Extracts scope from adddress @dst, stores cleared address * inside @dst and zone inside @scopeid */

Source from the content-addressed store, hash-verified

518 * inside @dst and zone inside @scopeid
519 */
520void
521in6_splitscope(const struct in6_addr *src, struct in6_addr *dst,
522 uint32_t *scopeid)
523{
524 uint32_t zoneid;
525
526 *dst = *src;
527 zoneid = ntohs(in6_getscope(dst));
528 in6_clearscope(dst);
529 *scopeid = zoneid;
530}
531
532/*
533 * This function is for checking sockaddr_in6 structure passed

Callers 14

pf_calc_mssFunction · 0.85
tcp_maxmtu6Function · 0.85
in6_lltable_rtcheckFunction · 0.85
nd6_ns_output_fibFunction · 0.85
nd6_na_output_fibFunction · 0.85
in6p_lookup_mcast_ifpFunction · 0.85
ip6_outputFunction · 0.85
ip6_getpmtu_ctlFunction · 0.85
ip6_getpmtuFunction · 0.85
in6_selecthlimFunction · 0.85
icmp6_reflectFunction · 0.85
icmp6_redirect_inputFunction · 0.85

Calls 2

in6_getscopeFunction · 0.85
in6_clearscopeFunction · 0.85

Tested by

no test coverage detected