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

Function ifa_is_p2p

freebsd/netinet6/in6.c:1297–1309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1295}
1296
1297static bool
1298ifa_is_p2p(struct in6_ifaddr *ia)
1299{
1300 int plen;
1301
1302 plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL); /* XXX */
1303
1304 if ((plen == 128) && (ia->ia_dstaddr.sin6_family == AF_INET6) &&
1305 !IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr, &ia->ia_dstaddr.sin6_addr))
1306 return (true);
1307
1308 return (false);
1309}
1310
1311void
1312in6_purgeaddr(struct ifaddr *ifa)

Callers 2

in6_purgeaddrFunction · 0.85
in6_notify_ifaFunction · 0.85

Calls 1

in6_mask2lenFunction · 0.85

Tested by

no test coverage detected