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

Function lookup_addrsel_policy

freebsd/netinet6/in6_src.c:991–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991static struct in6_addrpolicy *
992lookup_addrsel_policy(struct sockaddr_in6 *key)
993{
994 struct in6_addrpolicy *match = NULL;
995
996 ADDRSEL_LOCK();
997 match = match_addrsel_policy(key);
998
999 if (match == NULL)
1000 match = &V_defaultaddrpolicy;
1001 else
1002 match->use++;
1003 ADDRSEL_UNLOCK();
1004
1005 return (match);
1006}
1007
1008/*
1009 * Subroutines to manage the address selection policy table via sysctl.

Callers 1

in6_selectsrcFunction · 0.85

Calls 1

match_addrsel_policyFunction · 0.85

Tested by

no test coverage detected