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

Function ifa_ifwithaddr_check

freebsd/net/if.c:1931–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929}
1930
1931int
1932ifa_ifwithaddr_check(const struct sockaddr *addr)
1933{
1934 struct epoch_tracker et;
1935 int rc;
1936
1937 NET_EPOCH_ENTER(et);
1938 rc = (ifa_ifwithaddr(addr) != NULL);
1939 NET_EPOCH_EXIT(et);
1940 return (rc);
1941}
1942
1943/*
1944 * Locate an interface based on the broadcast address.

Callers 4

in_pcbbind_setupFunction · 0.85
ip_dooptionsFunction · 0.85
rip_bindFunction · 0.85

Calls 1

ifa_ifwithaddrFunction · 0.85

Tested by

no test coverage detected